BulletBodyNode
-
class BulletBodyNode
Bases:
PandaNodeInheritance diagram
-
void add_shape(BulletShape *shape, TransformState const *xform = TransformState::make_identity())
Shapes
-
void add_shapes_from_collision_solids(CollisionNode *cnode)
-
void add_shapes_from_collision_solids(CollisionNode *cnode, TransformState const *relative_transform)
Add shapes from the specified collision node to this body.
Add shapes from the specified collision node to this body. Also apply the given transform state to all solids. This is useful for example when the collision node is rotated, is not centered to origin, or has several parent transforms applied on it.
-
void force_active(bool active)
-
PN_stdfloat get_ccd_motion_threshold(void) const
-
PN_stdfloat get_ccd_swept_sphere_radius(void) const
CCD
CCD
-
static TypeHandle get_class_type(void)
-
bool get_collision_response(void) const
-
PN_stdfloat get_contact_processing_threshold(void) const
-
PN_stdfloat get_deactivation_time(void) const
-
PN_stdfloat get_friction(void) const
-
int get_num_shapes(void) const
-
PN_stdfloat get_restitution(void) const
Friction and Restitution
Friction and Restitution
-
BulletShape *get_shape(int idx) const
-
BoundingSphere get_shape_bounds(void) const
Returns the current bounds of all collision shapes owned by this body.
-
ConstPointerTo<TransformState> get_shape_transform(int idx) const
-
bool has_anisotropic_friction(void) const
-
bool has_contact_response(void) const
-
bool is_active(void) const
Deactivation
Deactivation
-
bool is_deactivation_enabled(void) const
-
bool is_debug_enabled(void) const
Returns TRUE if the debug visualisation is enabled for this collision object, and FALSE if the debug visualisation is disabled.
-
bool is_kinematic(void) const
-
bool is_static(void) const
Static and kinematic
Static and kinematic
-
bool notifies_collisions(void) const
-
void notify_collisions(bool value)
-
void remove_shape(BulletShape *shape)
-
void set_active(bool active, bool force = false)
-
void set_ccd_motion_threshold(PN_stdfloat threshold)
-
void set_ccd_swept_sphere_radius(PN_stdfloat radius)
-
void set_collision_response(bool value)
-
void set_contact_processing_threshold(PN_stdfloat threshold)
The constraint solver can discard solving contacts, if the distance is above this threshold.
-
void set_deactivation_enabled(bool enabled)
If true, this object will be deactivated after a certain amount of time has passed without movement. If false, the object will always remain active.
-
void set_deactivation_time(PN_stdfloat dt)
-
void set_debug_enabled(bool const enabled)
Debug Visualisation
Debug Visualisation
Enables or disables the debug visualisation for this collision object. By default the debug visualisation is enabled.
-
void set_friction(PN_stdfloat friction)
-
void set_into_collide_mask(CollideMask mask)
Contacts
-
void set_kinematic(bool value)
-
void set_restitution(PN_stdfloat restitution)
-
void set_static(bool value)
-
void add_shape(BulletShape *shape, TransformState const *xform = TransformState::make_identity())
