36#ifndef DVD_PHYSICS_API_FOUND_
37#define DVD_PHYSICS_API_FOUND_
57 void*
allocate(
const size_t size,
const char*,
const char*,
int)
noexcept override
59 return mi_new_aligned_nothrow(size, 16);
97 void createPvdConnection(
const char* ip, physx::PxU32 port, physx::PxU32 timeout,
bool useFullConnection);
99#if PX_SUPPORT_GPU_PHYSX
100 POINTER_R(physx::PxCudaContextManager, cudaContextManager,
nullptr);
constexpr auto MAX_ACTOR_QUEUE
physx::PxU8 _timeStepFactor
bool convertActor(PhysicsAsset *actor, PhysicsGroup newGroup) override
physx::PxMaterial * _defaultMaterial
PhysXSceneInterface_uptr _targetScene
physx::PxPhysics * _gPhysicsSDK
ErrorCode initPhysicsAPI(U8 targetFrameRate, F32 simSpeed) override
bool initPhysicsScene(Scene &scene) override
void frameEnded(U64 deltaTimeGameUS) override
Update actors.
PhysicsAsset * createRigidActor(SceneGraphNode *node, RigidBodyComponent &parentComp) override
bool closePhysicsAPI() override
physx::PxPhysics * getSDK() const noexcept
physx::PxReal _accumulator
physx::PxRigidActor * createActorForGroup(PhysicsGroup group, const physx::PxTransform &pose)
static SharedMutex s_meshCacheLock
bool destroyPhysicsScene(const Scene &scene) override
void updateTimeStep(U8 timeStepFactor, F32 simSpeed) override
bool intersect(const Ray &intersectionRay, vec2< F32 > range, vector< SGNRayResult > &intersectionsOut) const override
void frameStarted(U64 deltaTimeGameUS) override
Process results.
void createPvdConnection(const char *ip, physx::PxU32 port, physx::PxU32 timeout, bool useFullConnection)
void togglePvdConnection() const
physx::PxFoundation * _foundation
static hashMap< U64, physx::PxTriangleMesh * > s_gMeshCache
physx::PxPvdTransport * _transport
PlatformContext & context() noexcept
void deallocate(void *ptr) noexcept override
static constexpr size_t s_alignment
void * allocate(const size_t size, const char *, const char *, int) noexcept override
Handle console commands that start with a forward slash.
std::shared_mutex SharedMutex
eastl::vector< Type > vector
hashAlg::unordered_map< K, V, HashFun, Predicate > hashMap