14#ifndef __BULLET_TRIANGLE_MESH_SHAPE_H__
15#define __BULLET_TRIANGLE_MESH_SHAPE_H__
30class EXPCL_PANDABULLET BulletTriangleMeshShape :
public BulletShape {
32 INLINE BulletTriangleMeshShape();
35 explicit BulletTriangleMeshShape(
BulletTriangleMesh *mesh,
bool dynamic,
bool compress=
true,
bool bvh=
true);
36 BulletTriangleMeshShape(
const BulletTriangleMeshShape ©);
37 INLINE ~BulletTriangleMeshShape();
39 void refit_tree(
const LPoint3 &aabb_min,
const LPoint3 &aabb_max);
41 INLINE
bool is_static()
const;
42 INLINE
bool is_dynamic()
const;
44 MAKE_PROPERTY(
static, is_static);
45 MAKE_PROPERTY(dynamic, is_dynamic);
48 virtual btCollisionShape *ptr()
const;
51 btBvhTriangleMeshShape *_bvh_shape;
52 btGImpactMeshShape *_gimpact_shape;
70 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
77 static void init_type() {
78 BulletShape::init_type();
80 BulletShape::get_class_type());
83 return get_class_type();
87 return get_class_type();
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
static void register_with_read_factory()
Tells the BamReader how to create objects of type BulletTriangleMeshShape.
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...
TypeHandle is the identifier used to differentiate C++ class types.
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...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
This is our own Panda specialization on the default STL list.
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(),...