BulletWorld
from panda3d.bullet import BulletWorld
- class BulletWorld
Bases:
Bases:
TypedReferenceCount
Inheritance diagram
-
enum BroadphaseAlgorithm
Configuration
-
enumerator BA_sweep_and_prune = 0
-
enumerator BA_dynamic_aabb_tree = 1
-
enumerator BA_sweep_and_prune = 0
-
enum FilterAlgorithm
-
enumerator FA_mask = 0
-
enumerator FA_groups_mask = 1
-
enumerator FA_callback = 2
-
enumerator FA_mask = 0
- __init__()
- attach(object: panda3d.core.TypedObject)
AttachRemove
- attach_character(node: BulletBaseCharacterControllerNode)
Deprecated: Please use
BulletWorld.attach
- attach_constraint(constraint: BulletConstraint, linked_collision: bool)
Attaches a single constraint to a world. Collision checks between the linked objects will be disabled if the second parameter is set to TRUE.
- attach_ghost(node: BulletGhostNode)
Deprecated: Please use
BulletWorld.attach
- attach_rigid_body(node: BulletRigidBodyNode)
Deprecated: Please use
BulletWorld.attach
- attach_soft_body(node: BulletSoftBodyNode)
Deprecated: Please use
BulletWorld.attach
- attach_vehicle(vehicle: BulletVehicle)
Deprecated: Please use
BulletWorld.attach
- property characters Sequence[BulletBaseCharacterControllerNode]
- clear_contact_added_callback()
- clear_debug_node()
Removes a debug node that has been assigned to this
BulletWorld
.
- clear_filter_callback()
- clear_tick_callback()
- property constraints Sequence[BulletConstraint]
- contact_test(node: panda3d.core.PandaNode, use_filter: bool) BulletContactResult
Performas a test for all bodies which are currently in contact with the given body. The test returns a
BulletContactResult
object which may contain zero, one or more contacts.If the optional parameter use_filter is set to TRUE this test will consider filter settings. Otherwise all objects in contact are reported, no matter if they would collide or not.
- contact_test_pair(node0: panda3d.core.PandaNode, node1: panda3d.core.PandaNode) BulletContactResult
Performas a test if the two bodies given as parameters are in contact or not. The test returns a
BulletContactResult
object which may contain zero or one contacts.
- property debug_node BulletDebugNode
Getter Setter
Debug
Debug
- filter_test(node0: panda3d.core.PandaNode, node1: panda3d.core.PandaNode) bool
Performs a test if two bodies should collide or not, based on the collision filter setting.
- get_character(idx: int) BulletBaseCharacterControllerNode
- static get_class_type() panda3d.core.TypeHandle
- get_constraint(idx: int) BulletConstraint
- get_debug_node() BulletDebugNode
- get_ghost(idx: int) BulletGhostNode
- get_gravity() panda3d.core.LVector3
- get_manifold(idx: int) BulletPersistentManifold
- get_rigid_body(idx: int) BulletRigidBodyNode
- get_soft_body(idx: int) BulletSoftBodyNode
- get_vehicle(idx: int) BulletVehicle
- get_world_info() BulletSoftBodyWorldInfo
- property ghosts Sequence[BulletGhostNode]
- property manifolds Sequence[BulletPersistentManifold]
- ray_test_all(from_pos: panda3d.core.LPoint3, to_pos: panda3d.core.LPoint3, mask: panda3d.core.CollideMask) BulletAllHitsRayResult
- ray_test_closest(from_pos: panda3d.core.LPoint3, to_pos: panda3d.core.LPoint3, mask: panda3d.core.CollideMask) BulletClosestHitRayResult
Raycast and other queries
- remove(object: panda3d.core.TypedObject)
- remove_character(node: BulletBaseCharacterControllerNode)
Deprecated: Please use
BulletWorld.remove
- remove_constraint(constraint: BulletConstraint)
Deprecated: Please use
BulletWorld.remove
- remove_ghost(node: BulletGhostNode)
Deprecated: Please use
BulletWorld.remove
- remove_rigid_body(node: BulletRigidBodyNode)
Deprecated: Please use
BulletWorld.remove
- remove_soft_body(node: BulletSoftBodyNode)
Deprecated: Please use
BulletWorld.remove
- remove_vehicle(vehicle: BulletVehicle)
Deprecated: Please use
BulletWorld.remove
- property rigid_bodies Sequence[BulletRigidBodyNode]
- set_contact_added_callback(obj: panda3d.core.CallbackObject)
Callbacks
- set_debug_node(node: BulletDebugNode)
- set_filter_callback(obj: panda3d.core.CallbackObject)
- set_gravity(gravity: panda3d.core.LVector3)
- set_tick_callback(obj: panda3d.core.CallbackObject, is_pretick: bool)
- property soft_bodies Sequence[BulletSoftBodyNode]
- sweep_test_closest(shape: BulletShape, from_ts: panda3d.core.TransformState, to_ts: panda3d.core.TransformState, mask: panda3d.core.CollideMask, penetration: float) BulletClosestHitSweepResult
Performs a sweep test against all other shapes that match the given group mask. The provided shape must be a convex shape; it is an error to invoke this method using a non-convex shape.
- property vehicles Sequence[BulletVehicle]
- property world_info BulletSoftBodyWorldInfo
-
enum BroadphaseAlgorithm