better physics

This commit is contained in:
2026-03-05 00:30:27 +02:00
parent ddbdef713b
commit 2da75ebdd8
68 changed files with 743 additions and 262450 deletions

View File

@@ -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);