BulletBodyNode

from acron.bullet import BulletBodyNode
class BulletBodyNode

Bases:

Bases: AcronNode

Inheritance diagram

digraph inheritancee397bce7f8 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AcronNode" [URL="acron.core.AcronNode.html#acron.core.AcronNode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "AcronNode" [arrowsize=0.75,style=""]; "Namable" -> "AcronNode" [arrowsize=0.75,style=""]; "BulletBodyNode" [URL="acron.bullet.BulletBodyNode.html#acron.bullet.BulletBodyNode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "AcronNode" -> "BulletBodyNode" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }
property active → bool

Deactivation

Getter

Deactivation

Deactivation

Setter

add_shape()

Shapes

add_shapes_from_collision_solids()

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.

property anisotropic_friction → LVecBase3
property ccd_motion_threshold → float
property ccd_swept_sphere_radius → float

CCD

Getter

CCD

CCD

Setter

check_collision_with()
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()
property friction → float
get_anisotropic_friction()
get_ccd_motion_threshold()
get_ccd_swept_sphere_radius()

CCD

CCD

static get_class_type()
get_collision_response()
get_contact_processing_threshold()
get_deactivation_time()
get_friction()
get_num_shapes()
get_restitution()

Friction and Restitution

Friction and Restitution

get_shape()
get_shape_bounds()

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

get_shape_mat()
get_shape_pos()
get_shape_transform()
get_shapes() → list
has_anisotropic_friction()
has_contact_response()
is_active()

Deactivation

Deactivation

is_deactivation_enabled()
is_debug_enabled()

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

is_kinematic()
is_static()

Static and kinematic

Static and kinematic

property kinematic → bool
notifies_collisions()
notify_collisions()
remove_shape()
property restitution → float

Friction and Restitution

Getter

Friction and Restitution

Friction and Restitution

Setter

set_active()
set_anisotropic_friction()
set_ccd_motion_threshold()
set_ccd_swept_sphere_radius()
set_collision_response()
set_contact_processing_threshold()

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

set_deactivation_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.

set_deactivation_time()
set_debug_enabled()

Debug Visualisation

Debug Visualisation

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

set_friction()
set_into_collide_mask()

Contacts

set_kinematic()
set_restitution()
set_static()
set_transform_dirty()

Special

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 AcronNode 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