BulletBodyNode¶
from acron.bullet import BulletBodyNode
- class BulletBodyNode¶
Bases:
Bases:
AcronNodeInheritance 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=""]; }- 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.
- check_collision_with()¶
- property contact_processing_threshold float¶
Getter Setter
The constraint solver can discard solving contacts, if the distance is above this threshold.
- 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 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()¶
- 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()¶
- 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
- 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
AcronNodehook ‘transform_changed’.
- property shape_bounds BoundingSphere¶
Returns the current bounds of all collision shapes owned by this body.
- property shapes Sequence[BulletShape]¶