|
| 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 ActorId | CreateConvexHull (float *vertices, int numVertices, IndexT material, ActorType type, Math::mat4 const &transform, IndexT scene=0) |
| | Create a convex hull/mesh from vertex buffer.
|
| 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 ActorId | CreateActor (const BodyDescription &desc) |
| | Create a body from plain data. Shapes are added separately with AddShape.
|
| static void | UpdateBody (ActorId id, const BodyDescription &desc) |
| | apply the body properties of the description onto an existing actor
|
| static ShapeId | AddShape (ActorId actor, const ColliderDescription &desc) |
| | add a shape to an actor
|
| static bool | UpdateShape (ShapeId shape, const ColliderDescription &desc) |
| | apply a description onto an existing shape. The geometry is rebuilt if the shape parameters changed
|
| static void | RemoveShape (ShapeId shape) |
| | detach and release a shape from its actor
|
| static Shape & | GetShape (ShapeId id) |
| static bool | IsValidShape (ShapeId id) |
| 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) |
| static void | DiscardActor (ActorId id) |
| | destroy an actor and the shapes it owns
|