better physics
This commit is contained in:
@@ -20,6 +20,19 @@ typedef struct RapierShape_t RapierShape_t;
|
||||
|
||||
typedef struct RapierWorld_t RapierWorld_t;
|
||||
|
||||
typedef struct Vector {
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
} Vector;
|
||||
|
||||
typedef struct Quat {
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float w;
|
||||
} Quat;
|
||||
|
||||
typedef struct BallShape_t {
|
||||
float m_fRadius;
|
||||
} BallShape_t;
|
||||
@@ -34,11 +47,21 @@ typedef struct CuboidShape_t {
|
||||
extern "C" {
|
||||
#endif // __cplusplus
|
||||
|
||||
struct Vector CRapierPhysicsBody_GetPosition(struct RapierPhysicsBody_t *this_);
|
||||
|
||||
struct Quat CRapierPhysicsBody_GetRotation(struct RapierPhysicsBody_t *this_);
|
||||
|
||||
void CRapierPhysicsBody_SetPosition(struct RapierPhysicsBody_t *this_,
|
||||
float fX,
|
||||
float fY,
|
||||
float fZ);
|
||||
|
||||
void CRapierPhysicsBody_SetRotation(struct RapierPhysicsBody_t *this_,
|
||||
float fX,
|
||||
float fY,
|
||||
float fZ,
|
||||
float fW);
|
||||
|
||||
struct RapierPhysicsBody_t *CRapierPhysicsWorld_CreateRigidBody(struct RapierWorld_t *this_,
|
||||
struct RapierCollider_t *pCollider,
|
||||
enum EPhysicsBodyType eType);
|
||||
|
||||
Reference in New Issue
Block a user