fixes for physics
This commit is contained in:
@@ -43,6 +43,13 @@ typedef struct CuboidShape_t {
|
||||
float m_fExtentZ;
|
||||
} CuboidShape_t;
|
||||
|
||||
typedef struct TriangleMeshShape_t {
|
||||
const float *m_pfPositions;
|
||||
uint32_t m_nPositionCount;
|
||||
const float *m_puIndicies;
|
||||
uint32_t m_nIndiciesCount;
|
||||
} TriangleMeshShape_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif // __cplusplus
|
||||
@@ -62,6 +69,8 @@ void CRapierPhysicsBody_SetRotation(struct RapierPhysicsBody_t *this_,
|
||||
float fZ,
|
||||
float fW);
|
||||
|
||||
void CRapierPhysicsBody_SetType(struct RapierPhysicsBody_t *this_, enum EPhysicsBodyType eType);
|
||||
|
||||
struct RapierPhysicsBody_t *CRapierPhysicsWorld_CreateRigidBody(struct RapierWorld_t *this_,
|
||||
struct RapierCollider_t *pCollider,
|
||||
enum EPhysicsBodyType eType);
|
||||
@@ -77,6 +86,9 @@ struct RapierCollider_t *CRapierPhysics_CreateCollider(struct RapierPhysics_t *t
|
||||
struct RapierShape_t *CRapierPhysics_CreateCube(struct RapierPhysics_t *this_,
|
||||
struct CuboidShape_t cuboid);
|
||||
|
||||
struct RapierShape_t *CRapierPhysics_CreateTriangleMesh(struct RapierPhysics_t *this_,
|
||||
struct TriangleMeshShape_t triangle);
|
||||
|
||||
struct RapierWorld_t *CRapierPhysics_CreateWorld(struct RapierPhysics_t *this_);
|
||||
|
||||
struct RapierPhysics_t *CRapierPhysics_New(void);
|
||||
|
||||
Reference in New Issue
Block a user