14 #ifndef COLLISIONCONE_H
15 #define COLLISIONCONE_H
28 INLINE
explicit CollisionCone(PN_stdfloat radius, PN_stdfloat height);
31 virtual LPoint3 get_collision_origin()
const;
36 virtual void xform(
const LMatrix4 &mat);
41 virtual void output(std::ostream &out)
const;
43 INLINE
static void flush_level();
46 INLINE
void set_radius(PN_stdfloat radius);
47 INLINE PN_stdfloat get_radius()
const;
49 INLINE
const LPoint3 &get_apex()
const;
52 MAKE_PROPERTY(radius, get_radius, set_radius);
53 MAKE_PROPERTY(apex, get_apex);
62 virtual void fill_viz_geom();
72 static void register_with_read_factory();
83 static void init_type() {
84 CollisionSolid::init_type();
86 CollisionSolid::get_class_type());
89 return get_class_type();
91 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
A cuboid collision volume or object.
This implements a conical solid consisting a circular base with a pointy tip.
Defines a single collision event.
The abstract base class for all things that can collide with other things in the world,...
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
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.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
A lightweight class that represents a single element that may be timed and/or counted via stats.
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...