|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Physics engine interface. More...
#include <IPhysicsEngine.hpp>


Public Member Functions | |
| void | Simulate (float dt) |
| IntPtr | GetScene () |
| IStaticCollider | CreateStaticCollider (Model3D model, Vector3 position, Quaternion rotation, Vector3 scale) |
| IDynamicCollider | CreateDynamicCollider () |
| ICharacterController | CreateCharacterController (float radius, float height, Vector3 position) |
| IJoint | CreateJoint (JointType type) |
| IPhysicsEngine (IntPtr natPtr) | |
| virtual void | Simulate (float dt)=0 |
| Simulates the world with a step in dt seconds. | |
| virtual void * | GetScene () const noexcept=0 |
| Gets an handle to the scene. | |
| virtual std::unique_ptr< IStaticCollider > | CreateStaticCollider (Graphics::Model3D *model, const Math::Vector3 &position=Math::Vector3::Zero(), const Math::Quaternion &rotation=Math::Quaternion(), const Math::Vector3 &scale=Math::Vector3::One())=0 |
| Creates an static collider for the given model with the specified position, rotation, and scale. | |
| virtual std::unique_ptr< IDynamicCollider > | CreateDynamicCollider ()=0 |
| Creates a dynamic collider. | |
| virtual std::unique_ptr< ICharacterController > | CreateCharacterController (float radius, float height, const Math::Vector3 &position=Math::Vector3::Zero())=0 |
| Creates a character controller. | |
| virtual std::unique_ptr< IJoint > | CreateJoint (JointType type)=0 |
| Creates a joint of the specified type. | |
| virtual double | dt () const noexcept=0 |
| Returns the time step. | |
| virtual void | SetGravity (const Math::Vector3 &gravity)=0 |
| Sets the simulation gravity. | |
| virtual Math::Vector3 | GetGravity () const =0 |
| Gets the simulation gravity. | |
| ~IPhysicsEngine () override=default | |
| Public Member Functions inherited from Engine3DRadSpace.NatPtrWrapper | |
| virtual void | Dispose () |
| Public Member Functions inherited from Engine3DRadSpace.IService | |
| IGame * | GetOwner () const noexcept |
| Gets the owner of this instance. | |
| virtual | ~IService ()=default |
Properties | |
| double | DT [get] |
| Vector3 | Gravity [get, set] |
| Properties inherited from Engine3DRadSpace.InstIService | |
| IGame | Owner [get] |
| Properties inherited from Engine3DRadSpace.NatPtrWrapper | |
| IntPtr | Handle [get] |
| Properties inherited from Engine3DRadSpace.IService | |
| IGame | Owner [get] |
Additional Inherited Members | |
| Protected Member Functions inherited from Engine3DRadSpace.InstIService | |
| InstIService (IntPtr handle) | |
| InstIService (IntPtr handle, bool ownsHandle) | |
| Protected Member Functions inherited from Engine3DRadSpace.NatPtrWrapper | |
| NatPtrWrapper (IntPtr handle, Action< IntPtr > fnDestroy) | |
| NatPtrWrapper (Action< IntPtr > fnDestroy) | |
| void | Reset (IntPtr newObj) |
| void | Dispose (bool disposing) |
| Protected Member Functions inherited from Engine3DRadSpace.IService | |
| IService () | |
| IService (IGame *owner) | |
| IService (const IService &)=delete | |
| IService & | operator= (const IService &)=delete |
| IService (IService &&) noexcept=default | |
| IService & | operator= (IService &&) noexcept=default |
| Protected Attributes inherited from Engine3DRadSpace.NatPtrWrapper | |
| IntPtr | _handle |
| bool | _disposed |
| Protected Attributes inherited from Engine3DRadSpace.IService | |
| IGame * | _owner = nullptr |
Physics engine interface.
|
inline |
|
overridedefault |
|
inline |
|
pure virtual |
Creates a character controller.
| radius | The radius of the character controller. |
| height | The height of the character controller. |
| position | The position of the character controller. |
|
inline |
|
pure virtual |
Creates a dynamic collider.
Implemented in Engine3DRadSpace.Physics::NVPhysX::PhysicsEngine.
|
pure virtual |
Creates a joint of the specified type.
| type | The type of joint to create. |
Implemented in Engine3DRadSpace.Physics::NVPhysX::PhysicsEngine.
|
inline |
|
pure virtual |
Creates an static collider for the given model with the specified position, rotation, and scale.
| model | The 3D model to create the static collider for. |
| position | The position of the static collider. |
| rotation | The rotation of the static collider. |
| scale | The scale of the static collider. |
|
pure virtualnoexcept |
Returns the time step.
Implemented in Engine3DRadSpace.Physics::NVPhysX::PhysicsEngine.
|
pure virtual |
Gets the simulation gravity.
Implemented in Engine3DRadSpace.Physics::NVPhysX::PhysicsEngine.
|
inline |
|
pure virtualnoexcept |
Gets an handle to the scene.
Implemented in Engine3DRadSpace.Physics::NVPhysX::PhysicsEngine.
|
pure virtual |
Sets the simulation gravity.
| gravity | gravity in m/s^2 |
|
inline |
|
pure virtual |
Simulates the world with a step in dt seconds.
| dt | step duration in seconds |
Implemented in Engine3DRadSpace.Physics::NVPhysX::PhysicsEngine.
|
get |
|
getset |