14#ifndef __BULLET_CONVEX_POINT_CLOUD_SHAPE_H__
15#define __BULLET_CONVEX_POINT_CLOUD_SHAPE_H__
28class EXPCL_PANDABULLET BulletConvexPointCloudShape :
public BulletShape {
31 INLINE BulletConvexPointCloudShape();
34 explicit BulletConvexPointCloudShape(
const PTA_LVecBase3 &points, LVecBase3 scale=LVecBase3(1.));
35 explicit BulletConvexPointCloudShape(
const Geom *geom, LVecBase3 scale=LVecBase3(1.));
36 BulletConvexPointCloudShape(
const BulletConvexPointCloudShape ©);
37 INLINE ~BulletConvexPointCloudShape();
39 int get_num_points()
const;
41 MAKE_PROPERTY(num_points, get_num_points);
44 virtual btCollisionShape *ptr()
const;
47 btConvexPointCloudShape *_shape;
55 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
62 static void init_type() {
63 BulletShape::init_type();
65 BulletShape::get_class_type());
68 return get_class_type();
72 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.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...