Provides a system for creating array friendly id numbers with reuse and generations.
Definition idgenerationpool.h:43
Definition actorcontext.h:35
static void DiscardActor(ActorId id)
Definition actorcontext.cc:62
static void SetCollisionFeedback(ActorId id, CollisionFeedback feedback)
modify collision callback handling
Definition actorcontext.cc:402
static ActorId CreateCapsule(float radius, float halfHeight, IndexT material, ActorType type, Math::mat4 const &transform, IndexT scene=0)
Definition actorcontext.cc:122
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
Definition actorcontext.cc:315
static ActorId CreateBox(Math::vector const &extends, IndexT material, ActorType type, Math::mat4 const &transform, IndexT scene=0)
helper functions for creating shapes
Definition actorcontext.cc:80
static ActorId CreatePlane(Math::plane const &plane, IndexT material, IndexT scene=0)
Definition actorcontext.cc:186
static void GetPositionOrientation(ActorId id, Math::vec3 &position, Math::quat &orientation)
Definition actorcontext.cc:263
static Math::vector GetLinearVelocity(ActorId id)
Definition actorcontext.cc:285
Util::StackArray< ShapeHandle, DefaultShapeAlloc > ShapeArrayType
Definition actorcontext.h:80
static Ids::IdGenerationPool actorPool
Definition actorcontext.h:99
static physx::PxRigidDynamic * GetPxDynamic(ActorId id)
shortcut for getting the pxactor object
Definition actorcontext.cc:336
static Util::Array< Actor > actors
Definition actorcontext.h:98
static ActorId AllocateActorId(physx::PxRigidActor *pxActor, ActorResourceId res)
static Actor & GetActor(ActorId id)
Definition actorcontext.cc:208
static void SetPositionOrientation(ActorId id, Math::vec3 const &position, Math::quat const &orientation)
Definition actorcontext.cc:245
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.
Definition actorcontext.cc:142
static void GetShapes(ActorId id, ShapeArrayType &shapes)
Definition actorcontext.cc:362
static Math::mat4 GetTransform(ActorId id)
Definition actorcontext.cc:235
static void SetShapeTransform(const ShapeHandle &shape, const Math::transform &transform)
Definition actorcontext.cc:391
static ActorId AllocateActorId(physx::PxRigidActor *pxActor)
static bool IsValid(ActorId id)
Definition actorcontext.h:128
static Math::transform GetShapeTransform(const ShapeHandle &shape)
Definition actorcontext.cc:382
static void SetTransform(ActorId id, Math::mat4 const &transform)
Definition actorcontext.cc:217
static void SetAngularVelocity(ActorId id, Math::vector speed)
Definition actorcontext.cc:295
@ DefaultShapeAlloc
Definition actorcontext.h:79
friend class PhysxState
Definition actorcontext.h:95
static ActorId CreateSphere(float radius, IndexT material, ActorType type, Math::mat4 const &transform, IndexT scene=0)
Definition actorcontext.cc:101
static void SetLinearVelocity(ActorId id, Math::vector speed)
Definition actorcontext.cc:275
static Math::vector GetAngularVelocity(ActorId id)
Definition actorcontext.cc:305
static SizeT GetShapeCount(ActorId id)
Definition actorcontext.cc:346
static physx::PxRigidActor * GetPxActor(ActorId id)
shortcut for getting the pxactor object
Definition actorcontext.cc:326
friend class StreamActorPool
Definition actorcontext.h:96
Definition actorcontext.h:109
static AggregateId AllocateAggregateId(AggregateResourceId res)
Definition actorcontext.cc:429
static Ids::IdGenerationPool aggPool
Definition actorcontext.h:117
static Aggregate & GetAggregate(AggregateId id)
Definition actorcontext.cc:450
static void DiscardAggregate(AggregateId id)
Definition actorcontext.cc:461
static Util::Array< Aggregate > aggregates
Definition actorcontext.h:116
friend class PhysxState
Definition actorcontext.h:113
friend class StreamActorPool
Definition actorcontext.h:114
Definition physxstate.h:25
Definition streamactorpool.h:65
Nebula's dynamic array class.
Definition array.h:60
Diverse functions for manipulating physics actors.
Definition actorcontext.cc:18
ActorType
Definition physicsinterface.h:38
Array< TYPE, STACK_SIZE > StackArray
Definition array.h:1881
A 4x4 single point precision float matrix.
Definition mat4.h:49
A mathematical plane represented by a normal and a distance from origin.
Definition plane.h:23
Represents a 3D point in space.
Definition point.h:22
A quaternion is usually used to represent an orientation in 3D space.
Definition quat.h:30
A 3D vector.
Definition vec3.h:40
A vector is a 3D direction in space.
Definition vector.h:22
Definition physicsinterface.h:91
Definition physicsinterface.h:63
Definition physicsinterface.h:32
Definition physicsinterface.h:121
Definition physicsinterface.h:84
Definition physicsinterface.h:33
Definition actorcontext.h:23
ShapeHandle(physx::PxShape *inShape)
Definition actorcontext.h:25
bool IsValid() const
Definition actorcontext.h:26
ShapeHandle()
Definition actorcontext.h:24
bool operator==(const ShapeHandle &other)
Definition actorcontext.h:27
physx::PxShape * shape
Definition actorcontext.h:28
int SizeT
Definition types.h:40
int IndexT
Definition types.h:39