BulletBodyNode

from panda3d.bullet import BulletBodyNode
class BulletBodyNode

Bases:

Bases: PandaNode

Inheritance diagram

Inheritance diagram of BulletBodyNode

property active bool

Deactivation

Getter

Deactivation

Deactivation

Setter

add_shape(shape: BulletShape, xform: panda3d.core.TransformState)

Shapes

add_shapes_from_collision_solids(cnode: panda3d.core.CollisionNode)
property anisotropic_friction LVecBase3
property ccd_motion_threshold float
property ccd_swept_sphere_radius float

CCD

Getter

CCD

CCD

Setter

check_collision_with(node: panda3d.core.PandaNode) bool
property collision_notification bool
property collision_response bool
property contact_processing_threshold float

Getter Setter

The constraint solver can discard solving contacts, if the distance is above this threshold.

property contact_response bool
property deactivation_enabled bool

Getter Setter

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.

property deactivation_time float
property debug_enabled bool
Getter

Returns TRUE if the debug visualisation is enabled for this collision object, and FALSE if the debug visualisation is disabled.

Setter

Debug Visualisation

Debug Visualisation

Enables or disables the debug visualisation for this collision object. By default the debug visualisation is enabled.

force_active(active: bool)
property friction float
get_anisotropic_friction() panda3d.core.LVecBase3
get_ccd_motion_threshold() float
get_ccd_swept_sphere_radius() float
static get_class_type() panda3d.core.TypeHandle
get_collision_response() bool
get_contact_processing_threshold() float
get_deactivation_time() float
get_friction() float
get_num_shapes() int
get_restitution() float

Friction and Restitution

get_shape(idx: int) BulletShape
get_shape_bounds() panda3d.core.BoundingSphere

Returns the current bounds of all collision shapes owned by this body.

get_shape_mat(idx: int) panda3d.core.LMatrix4
get_shape_pos(idx: int) panda3d.core.LPoint3
get_shape_transform(idx: int) panda3d.core.TransformState
get_shapes() list
has_anisotropic_friction() bool
has_contact_response() bool
is_active() bool

Deactivation

is_deactivation_enabled() bool
is_debug_enabled() bool

Returns TRUE if the debug visualisation is enabled for this collision object, and FALSE if the debug visualisation is disabled.

is_kinematic() bool
is_static() bool

Static and kinematic

property kinematic bool
notifies_collisions() bool
notify_collisions(value: bool)
remove_shape(shape: BulletShape)
property restitution float

Friction and Restitution

Getter

Friction and Restitution

Friction and Restitution

Setter

set_active(active: bool, force: bool)
set_anisotropic_friction(friction: panda3d.core.LVecBase3)
set_ccd_motion_threshold(threshold: float)
set_ccd_swept_sphere_radius(radius: float)
set_collision_response(value: bool)
set_contact_processing_threshold(threshold: float)

The constraint solver can discard solving contacts, if the distance is above this threshold.

set_deactivation_enabled(enabled: bool)

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.

set_deactivation_time(dt: float)
set_debug_enabled(enabled: bool)

Enables or disables the debug visualisation for this collision object. By default the debug visualisation is enabled.

set_friction(friction: float)
set_into_collide_mask(mask: panda3d.core.CollideMask)

Contacts

set_kinematic(value: bool)
set_restitution(restitution: float)
set_static(value: bool)
set_transform_dirty()

This method enforces an update of the Bullet transform, that is copies the scene graph transform to the Bullet transform. This is achieved by alling the protected PandaNode hook ‘transform_changed’.

property shape_bounds BoundingSphere

Returns the current bounds of all collision shapes owned by this body.

property shape_mat Sequence[LMatrix4]
property shape_pos Sequence[LPoint3]
property shape_transform Sequence[ConstPointerTo_TransformState]
property shapes Sequence[BulletShape]
property static bool

Static and kinematic

Getter

Static and kinematic

Static and kinematic

Setter