|
| static void | InitPhysicsActor (Game::World *, Game::Entity, PhysicsFeature::PhysicsActor *) |
| static void | InitPhysicsResource (Game::World *, Game::Entity, PhysicsFeature::PhysicsResource *) |
| static void | InitRigidbody (Game::World *, Game::Entity, PhysicsFeature::Rigidbody *) |
| static void | InitStaticBody (Game::World *, Game::Entity, PhysicsFeature::StaticBody *) |
| static void | InitBoxCollider (Game::World *, Game::Entity, PhysicsFeature::BoxCollider *) |
| static void | InitSphereCollider (Game::World *, Game::Entity, PhysicsFeature::SphereCollider *) |
| static void | InitCapsuleCollider (Game::World *, Game::Entity, PhysicsFeature::CapsuleCollider *) |
| static void | InitPlaneCollider (Game::World *, Game::Entity, PhysicsFeature::PlaneCollider *) |
| static void | InitMeshCollider (Game::World *, Game::Entity, PhysicsFeature::MeshCollider *) |
| static void | InitHeightFieldCollider (Game::World *, Game::Entity, PhysicsFeature::HeightFieldCollider *) |
| static void | Mark (Game::World *, Game::Entity, uint32_t pending) |
| | queues up work for an entity, see PhysicsPending.
|
| static void | MarkShapeChanged (Game::World *, Game::Entity) |
| | the collider components of the entity were changed, or added to an entity which already had a handle.
|
| static void | MarkBodyChanged (Game::World *, Game::Entity) |
| | the body component of the entity changed: actor type, mass, damping, gravity, ccd, collision group or collision feedback.
|
| static void | MarkPoseChanged (Game::World *, Game::Entity) |
| | the entity moved.
|
| static void | MarkComponentChange (Game::World *, Game::Entity, Game::ComponentId) |
| | the value of a component was written on an entity which already has a handle.
|
| static MemDb::TableSignature const & | ColliderSignature () |
| | the collider components as a signature.
|
| static bool | HasCollider (Game::World *, Game::Entity) |
| | true when the entity has any of the collider components
|
| static bool | IsColliderComponent (Game::ComponentId) |
| | true when the component is one of the collider components
|
| static Physics::ShapeId | GetShapeForEntity (Game::World *, Game::Entity) |
| static void | ReleaseShapeForEntity (Game::World *, Game::Entity) |
| template<typename COMPONENT_TYPE> |
| static void | OnColliderComponentDecay (Game::World *, Game::Entity, COMPONENT_TYPE *) |
| | decay callback of the collider components, see MarkShapeChanged
|
| template<typename COMPONENT_TYPE> |
| static void | OnBodyComponentDecay (Game::World *, Game::Entity, COMPONENT_TYPE *) |
| | decay callback of the body components, which releases the physx actor of the entity
|
|
| | RefCounted () |
| | constructor
|
| int | GetRefCount () const |
| | get the current refcount
|
| void | AddRef () |
| | increment refcount by one
|
| void | Release () |
| | decrement refcount and destroy object if refcount is zero
|
| bool | IsInstanceOf (const Rtti &rtti) const |
| | return true if this object is instance of given class
|
| bool | IsInstanceOf (const Util::String &className) const |
| | return true if this object is instance of given class by string
|
| bool | IsInstanceOf (const Util::FourCC &classFourCC) const |
| | return true if this object is instance of given class by fourcc
|
| bool | IsA (const Rtti &rtti) const |
| | return true if this object is instance of given class, or a derived class
|
| bool | IsA (const Util::String &rttiName) const |
| | return true if this object is instance of given class, or a derived class, by string
|
| bool | IsA (const Util::FourCC &rttiFourCC) const |
| | return true if this object is instance of given class, or a derived class, by fourcc
|
| const Util::String & | GetClassName () const |
| | get the class name
|
| Util::FourCC | GetClassFourCC () const |
| | get the class FourCC code
|
| static void | DumpRefCountingLeaks () |
| | dump refcounting leaks, call at end of application (NEBULA_DEBUG builds only!)
|
| virtual | ~RefCounted () |
| | destructor (called when refcount reaches zero)
|
the body component of the entity changed: actor type, mass, damping, gravity, ccd, collision group or collision feedback.
Adding or removing one is picked up on its own, by the init and the decay callback
template<typename COMPONENT_TYPE>
| void PhysicsFeature::PhysicsManager::OnBodyComponentDecay |
( |
Game::World * | world, |
|
|
Game::Entity | entity, |
|
|
COMPONENT_TYPE * | ) |
|
inlinestaticprivate |
decay callback of the body components, which releases the physx actor of the entity
A body component which goes away means that the entity is no longer a body, so its actor, and with it every shape attached to it, is released.