Go to the documentation of this file.
14 #ifndef COLLISIONINVSPHERE_H
15 #define COLLISIONINVSPHERE_H
30 INLINE
explicit CollisionInvSphere(PN_stdfloat cx, PN_stdfloat cy, PN_stdfloat cz, PN_stdfloat radius);
45 virtual void output(std::ostream &out)
const;
63 virtual void fill_viz_geom();
81 static void init_type() {
82 CollisionSphere::init_type();
84 CollisionSphere::get_class_type());
87 return get_class_type();
89 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
Defines a single collision event.
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(),...
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 ...
static void register_with_read_factory()
Factory method to generate a CollisionSphere object.
Base class for objects that can be written to and read from Bam files.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
TypeHandle is the identifier used to differentiate C++ class types.
virtual PStatCollector & get_volume_pcollector()
Returns a PStatCollector that is used to count the number of bounding volume tests made against a sol...
A spherical collision volume or object.
An inverted sphere: this is a sphere whose collision surface is the inside surface of the sphere.
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.
The abstract base class for all things that can collide with other things in the world,...
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
virtual PStatCollector & get_test_pcollector()
Returns a PStatCollector that is used to count the number of intersection tests made against a solid ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.