14 #ifndef COLLISIONPLANE_H 15 #define COLLISIONPLANE_H 35 virtual LPoint3 get_collision_origin()
const;
40 virtual void xform(
const LMatrix4 &mat);
45 virtual void output(std::ostream &out)
const;
47 INLINE
static void flush_level();
50 INLINE LVector3 get_normal()
const;
51 INLINE PN_stdfloat dist_to_plane(
const LPoint3 &point)
const;
53 INLINE
void set_plane(
const LPlane &plane);
54 INLINE
const LPlane &get_plane()
const;
59 MAKE_PROPERTY(normal, get_normal);
60 MAKE_PROPERTY(plane, get_plane, set_plane);
77 test_intersection_from_parabola(
const CollisionEntry &entry)
const;
81 virtual void fill_viz_geom();
90 static void register_with_read_factory();
102 static void init_type() {
103 CollisionSolid::init_type();
105 CollisionSolid::get_class_type());
108 return get_class_type();
110 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The abstract base class for all things that can collide with other things in the world,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Base class for objects that can be written to and read from Bam files.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
A lightweight class that represents a single element that may be timed and/or counted via stats.
Defines a single collision event.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual PStatCollector & get_test_pcollector()
Returns a PStatCollector that is used to count the number of intersection tests made against a solid ...
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...