14#ifndef __BULLET_CONVEX_HULL_SHAPE_H__
15#define __BULLET_CONVEX_HULL_SHAPE_H__
30class EXPCL_PANDABULLET BulletConvexHullShape :
public BulletShape {
32 BulletConvexHullShape();
33 BulletConvexHullShape(
const BulletConvexHullShape ©);
34 INLINE ~BulletConvexHullShape();
36 void add_point(
const LPoint3 &p);
37 void add_array(
const PTA_LVecBase3 &points);
38 void add_geom(
const Geom *geom,
42 virtual btCollisionShape *ptr()
const;
45 btConvexHullShape *_shape;
52 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
59 static void init_type() {
60 BulletShape::init_type();
62 BulletShape::get_class_type());
65 return get_class_type();
69 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 BulletShape.
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 container for geometry primitives.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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(),...