Panda3D
|
Public Types | |
enum | BroadphaseAlgorithm { BA_sweep_and_prune = 0, BA_dynamic_aabb_tree = 1 } |
enum | FilterAlgorithm { FA_mask = 0, FA_groups_mask = 1, FA_callback = 2 } |
Public Member Functions | |
__init__ () | |
attach (TypedObject object) | |
attachCharacter (BulletBaseCharacterControllerNode node) | |
attachConstraint (BulletConstraint constraint, bool linked_collision) | |
Attaches a single constraint to a world. More... | |
attachGhost (BulletGhostNode node) | |
attachRigidBody (BulletRigidBodyNode node) | |
attachSoftBody (BulletSoftBodyNode node) | |
attachVehicle (BulletVehicle vehicle) | |
clearContactAddedCallback () | |
clearDebugNode () | |
Removes a debug node that has been assigned to this BulletWorld. More... | |
clearFilterCallback () | |
clearTickCallback () | |
BulletContactResult | contactTest (PandaNode node, bool use_filter) |
Performas a test for all bodies which are currently in contact with the given body. More... | |
BulletContactResult | contactTestPair (PandaNode node0, PandaNode node1) |
Performas a test if the two bodies given as parameters are in contact or not. More... | |
int | doPhysics (float dt, int max_substeps, float stepsize) |
bool | filterTest (PandaNode node0, PandaNode node1) |
Performs a test if two bodies should collide or not, based on the collision filter setting. More... | |
BulletBaseCharacterControllerNode | getCharacter (int idx) |
list | getCharacters () |
BulletConstraint | getConstraint (int idx) |
list | getConstraints () |
BulletDebugNode | getDebugNode () |
bool | getForceUpdateAllAabbs () |
BulletGhostNode | getGhost (int idx) |
list | getGhosts () |
const LVector3 | getGravity () |
bool | getGroupCollisionFlag (unsigned int group1, unsigned int group2) |
BulletPersistentManifold | getManifold (int idx) |
list | getManifolds () |
int | getNumCharacters () |
int | getNumConstraints () |
int | getNumGhosts () |
int | getNumManifolds () |
int | getNumRigidBodies () |
int | getNumSoftBodies () |
int | getNumVehicles () |
list | getRigidBodies () |
BulletRigidBodyNode | getRigidBody (int idx) |
list | getSoftBodies () |
BulletSoftBodyNode | getSoftBody (int idx) |
BulletVehicle | getVehicle (int idx) |
list | getVehicles () |
BulletSoftBodyWorldInfo | getWorldInfo () |
bool | hasDebugNode () |
BulletAllHitsRayResult | rayTestAll (const LPoint3 from_pos, const LPoint3 to_pos, const CollideMask mask) |
BulletClosestHitRayResult | rayTestClosest (const LPoint3 from_pos, const LPoint3 to_pos, const CollideMask mask) |
remove (TypedObject object) | |
removeCharacter (BulletBaseCharacterControllerNode node) | |
removeConstraint (BulletConstraint constraint) | |
removeGhost (BulletGhostNode node) | |
removeRigidBody (BulletRigidBodyNode node) | |
removeSoftBody (BulletSoftBodyNode node) | |
removeVehicle (BulletVehicle vehicle) | |
setContactAddedCallback (CallbackObject obj) | |
setDebugNode (BulletDebugNode node) | |
setFilterCallback (CallbackObject obj) | |
setForceUpdateAllAabbs (bool force) | |
setGravity (const LVector3 gravity) | |
setGravity (float gx, float gy, float gz) | |
setGroupCollisionFlag (unsigned int group1, unsigned int group2, bool enable) | |
setTickCallback (CallbackObject obj, bool is_pretick) | |
BulletClosestHitSweepResult | sweepTestClosest (BulletShape shape, const TransformState from_ts, const TransformState to_ts, const CollideMask mask, float penetration) |
Performs a sweep test against all other shapes that match the given group mask. More... | |
![]() | |
TypeHandle | getType () |
int | getTypeIndex () |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More... | |
bool | isExactType (TypeHandle handle) |
Returns true if the current object is the indicated type exactly. More... | |
bool | isOfType (TypeHandle handle) |
Returns true if the current object is or derives from the indicated type. More... | |
![]() | |
int | getRefCount () |
Returns the current reference count. More... | |
ref () | |
Explicitly increments the reference count. More... | |
bool | testRefCountIntegrity () |
Does some easy checks to make sure that the reference count isn't completely bogus. More... | |
bool | testRefCountNonzero () |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More... | |
bool | unref () |
Explicitly decrements the reference count. More... | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
Public Attributes | |
BulletBaseCharacterControllerNode | characters [] |
BulletConstraint | constraints [] |
BulletDebugNode | debug_node |
bool | force_update_all_aabbs |
BulletGhostNode | ghosts [] |
LVector3 | gravity |
BulletPersistentManifold | manifolds [] |
BulletRigidBodyNode | rigid_bodies [] |
BulletSoftBodyNode | soft_bodies [] |
BulletVehicle | vehicles [] |
BulletSoftBodyWorldInfo | world_info |
![]() | |
TypeHandle | type |
Returns the TypeHandle representing this object's type. More... | |
![]() | |
int | ref_count |
The current reference count. More... | |
enum BroadphaseAlgorithm |
enum FilterAlgorithm |
__init__ | ( | ) |
attach | ( | TypedObject | object | ) |
attachCharacter | ( | BulletBaseCharacterControllerNode | node | ) |
attachConstraint | ( | BulletConstraint | constraint, |
bool | linked_collision | ||
) |
Attaches a single constraint to a world.
Collision checks between the linked objects will be disabled if the second parameter is set to TRUE.
attachGhost | ( | BulletGhostNode | node | ) |
attachRigidBody | ( | BulletRigidBodyNode | node | ) |
attachSoftBody | ( | BulletSoftBodyNode | node | ) |
attachVehicle | ( | BulletVehicle | vehicle | ) |
clearContactAddedCallback | ( | ) |
clearDebugNode | ( | ) |
Removes a debug node that has been assigned to this BulletWorld.
clearFilterCallback | ( | ) |
clearTickCallback | ( | ) |
BulletContactResult contactTest | ( | PandaNode | node, |
bool | use_filter | ||
) |
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.
BulletContactResult contactTestPair | ( | PandaNode | node0, |
PandaNode | node1 | ||
) |
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.
int doPhysics | ( | float | dt, |
int | max_substeps, | ||
float | stepsize | ||
) |
Performs a test if two bodies should collide or not, based on the collision filter setting.
BulletBaseCharacterControllerNode getCharacter | ( | int | idx | ) |
list getCharacters | ( | ) |
|
static |
BulletConstraint getConstraint | ( | int | idx | ) |
list getConstraints | ( | ) |
BulletDebugNode getDebugNode | ( | ) |
bool getForceUpdateAllAabbs | ( | ) |
BulletGhostNode getGhost | ( | int | idx | ) |
list getGhosts | ( | ) |
const LVector3 getGravity | ( | ) |
bool getGroupCollisionFlag | ( | unsigned int | group1, |
unsigned int | group2 | ||
) |
BulletPersistentManifold getManifold | ( | int | idx | ) |
list getManifolds | ( | ) |
int getNumCharacters | ( | ) |
int getNumConstraints | ( | ) |
int getNumGhosts | ( | ) |
int getNumManifolds | ( | ) |
int getNumRigidBodies | ( | ) |
int getNumSoftBodies | ( | ) |
int getNumVehicles | ( | ) |
list getRigidBodies | ( | ) |
BulletRigidBodyNode getRigidBody | ( | int | idx | ) |
list getSoftBodies | ( | ) |
BulletSoftBodyNode getSoftBody | ( | int | idx | ) |
BulletVehicle getVehicle | ( | int | idx | ) |
list getVehicles | ( | ) |
BulletSoftBodyWorldInfo getWorldInfo | ( | ) |
bool hasDebugNode | ( | ) |
BulletAllHitsRayResult rayTestAll | ( | const LPoint3 | from_pos, |
const LPoint3 | to_pos, | ||
const CollideMask | mask | ||
) |
BulletClosestHitRayResult rayTestClosest | ( | const LPoint3 | from_pos, |
const LPoint3 | to_pos, | ||
const CollideMask | mask | ||
) |
remove | ( | TypedObject | object | ) |
removeCharacter | ( | BulletBaseCharacterControllerNode | node | ) |
removeConstraint | ( | BulletConstraint | constraint | ) |
removeGhost | ( | BulletGhostNode | node | ) |
removeRigidBody | ( | BulletRigidBodyNode | node | ) |
removeSoftBody | ( | BulletSoftBodyNode | node | ) |
removeVehicle | ( | BulletVehicle | vehicle | ) |
setContactAddedCallback | ( | CallbackObject | obj | ) |
setDebugNode | ( | BulletDebugNode | node | ) |
setFilterCallback | ( | CallbackObject | obj | ) |
setForceUpdateAllAabbs | ( | bool | force | ) |
setGravity | ( | const LVector3 | gravity | ) |
setGravity | ( | float | gx, |
float | gy, | ||
float | gz | ||
) |
setGroupCollisionFlag | ( | unsigned int | group1, |
unsigned int | group2, | ||
bool | enable | ||
) |
setTickCallback | ( | CallbackObject | obj, |
bool | is_pretick | ||
) |
BulletClosestHitSweepResult sweepTestClosest | ( | BulletShape | shape, |
const TransformState | from_ts, | ||
const TransformState | to_ts, | ||
const CollideMask | mask, | ||
float | penetration | ||
) |
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.
BulletBaseCharacterControllerNode characters[] |
BulletConstraint constraints[] |
BulletDebugNode debug_node |
bool force_update_all_aabbs |
BulletGhostNode ghosts[] |
LVector3 gravity |
BulletPersistentManifold manifolds[] |
BulletRigidBodyNode rigid_bodies[] |
BulletSoftBodyNode soft_bodies[] |
BulletVehicle vehicles[] |
BulletSoftBodyWorldInfo world_info |