|
static ActorId | CreateBox (Math::vector const &extends, IndexT material, ActorType type, Math::mat4 const &transform, IndexT scene=0) |
| helper functions for creating shapes
|
|
static ActorId | CreateSphere (float radius, IndexT material, ActorType type, Math::mat4 const &transform, IndexT scene=0) |
|
static ActorId | CreatePlane (Math::plane const &plane, IndexT material, IndexT scene=0) |
|
static ActorId | CreateCapsule (float radius, float halfHeight, IndexT material, ActorType type, Math::mat4 const &transform, IndexT scene=0) |
|
static Actor & | GetActor (ActorId id) |
|
static void | SetTransform (ActorId id, Math::mat4 const &transform) |
|
static Math::mat4 | GetTransform (ActorId id) |
|
static void | SetPositionOrientation (ActorId id, Math::vec3 const &position, Math::quat const &orientation) |
|
static void | GetPositionOrientation (ActorId id, Math::vec3 &position, Math::quat &orientation) |
|
static void | SetLinearVelocity (ActorId id, Math::vector speed) |
|
static Math::vector | GetLinearVelocity (ActorId id) |
|
static void | SetAngularVelocity (ActorId id, Math::vector speed) |
|
static Math::vector | GetAngularVelocity (ActorId id) |
|
static void | ApplyImpulseAtPos (ActorId id, const Math::vector &impulse, const Math::point &pos) |
| apply a global impulse vector at the next time step at a global position
|
|
static void | SetCollisionFeedback (ActorId id, CollisionFeedback feedback) |
| modify collision callback handling
|
|
static SizeT | GetShapeCount (ActorId id) |
|
static void | GetShapes (ActorId id, ShapeArrayType &shapes) |
|
static Math::transform | GetShapeTransform (const ShapeHandle &shape) |
|
static void | SetShapeTransform (const ShapeHandle &shape, const Math::transform &transform) |
|
static physx::PxRigidActor * | GetPxActor (ActorId id) |
| shortcut for getting the pxactor object
|
|
static physx::PxRigidDynamic * | GetPxDynamic (ActorId id) |
| shortcut for getting the pxactor object
|
|
static bool | IsValid (ActorId id) |
|