14 #ifndef __BULLET_CAPSULE_SHAPE_H__ 15 #define __BULLET_CAPSULE_SHAPE_H__ 34 explicit BulletCapsuleShape(PN_stdfloat radius, PN_stdfloat height, BulletUpAxis up=Z_up);
40 INLINE PN_stdfloat get_radius()
const;
41 INLINE PN_stdfloat get_half_height()
const;
44 INLINE PN_stdfloat get_height()
const;
46 virtual btCollisionShape *ptr()
const;
49 MAKE_PROPERTY(radius, get_radius);
50 MAKE_PROPERTY(height, get_height);
53 btCapsuleShape *_shape;
59 static void register_with_read_factory();
70 static void init_type() {
71 BulletShape::init_type();
73 BulletShape::get_class_type());
76 return get_class_type();
80 return get_class_type();
89 #endif // __BULLET_CAPSULE_SHAPE_H__ PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
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 fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class's make_from_bam() method to read in all...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
This implements a solid consisting of a cylinder with hemispherical endcaps, also known as a capsule ...
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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 ...