24 lines
458 B
C++
24 lines
458 B
C++
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
|
|
|
|
#pragma once
|
|
|
|
#if COMPILE_WITH_PHYSX
|
|
|
|
#include "Engine/Physics/PhysicsBackend.h"
|
|
#include "Types.h"
|
|
|
|
/// <summary>
|
|
/// Implementation of the physical simulation using PhysX.
|
|
/// </summary>
|
|
class PhysicsBackendPhysX
|
|
{
|
|
public:
|
|
static PxPhysics* GetPhysics();
|
|
#if COMPILE_WITH_PHYSICS_COOKING
|
|
static PxCooking* GetCooking();
|
|
#endif
|
|
static PxMaterial* GetDefaultMaterial();
|
|
};
|
|
|
|
#endif
|