introduces ios support? still needs metal
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "tier0/lib.h"
|
||||
#include "stdint.h"
|
||||
#include "tier1/utlvector.h"
|
||||
#include "math3d.h"
|
||||
|
||||
|
||||
typedef void Collider;
|
||||
@@ -23,10 +24,25 @@ typedef struct u128 {
|
||||
|
||||
extern funnyphysics *px;
|
||||
|
||||
struct PxCastResult_t
|
||||
{
|
||||
bool bHit;
|
||||
float fTime;
|
||||
vec3 position;
|
||||
vec3 normal;
|
||||
vec3 normal2;
|
||||
};
|
||||
|
||||
interface IPxWorld
|
||||
{
|
||||
public:
|
||||
static PxCastResult_t BoxCast( vec3 size, vec3 origin, vec3 destination, vec3 rotation = (vec3){0,0,0} );
|
||||
};
|
||||
|
||||
class CPxCollider
|
||||
{
|
||||
public:
|
||||
virtual void Spawn( float fFriction = 0.5 ) = 0;
|
||||
virtual void Spawn( float fFriction = 0.0 ) = 0;
|
||||
virtual void Destroy( void );
|
||||
Collider *m_pCollider;
|
||||
};
|
||||
@@ -34,7 +50,7 @@ public:
|
||||
class CPxBallMesh: public CPxCollider
|
||||
{
|
||||
public:
|
||||
virtual void Spawn( float fFriction = 0.5 ) override;
|
||||
virtual void Spawn( float fFriction = 0.0 ) override;
|
||||
virtual void Destroy( void ) override;
|
||||
float m_fRadius;
|
||||
};
|
||||
@@ -42,7 +58,7 @@ public:
|
||||
class CPxBoxMesh: public CPxCollider
|
||||
{
|
||||
public:
|
||||
virtual void Spawn( float fFriction = 0.5 ) override;
|
||||
virtual void Spawn( float fFriction = 0.0 ) override;
|
||||
virtual void Destroy( void ) override;
|
||||
float m_fRadius[3];
|
||||
};
|
||||
@@ -50,7 +66,7 @@ public:
|
||||
class CPxTriangleMesh: public CPxCollider
|
||||
{
|
||||
public:
|
||||
virtual void Spawn( float fFriction = 0.5 ) override;
|
||||
virtual void Spawn( float fFriction = 0.0 ) override;
|
||||
virtual void Destroy( void ) override;
|
||||
};
|
||||
|
||||
@@ -58,6 +74,8 @@ class CPxRigidKinematicPosition
|
||||
{
|
||||
public:
|
||||
void Spawn( CPxCollider *pCollider, px_matrix matrix, px_rigidbody_params params );
|
||||
void SetPosition( px_vec3 position );
|
||||
void SetPositionTeleport( px_vec3 position );
|
||||
px_vec3 GetPosition( void );
|
||||
px_matrix GetMatrix ( void );
|
||||
void Destroy( void );
|
||||
|
||||
Reference in New Issue
Block a user