Logo
Public Member Functions | List of all members
SharpKmyPhysics::PhysicsBase Class Reference

#include <Physics.h>

Public Member Functions

 PhysicsBase (kmyPhysics::PhysicsBase *p)
 
void lockUpdate ()
 
void unlockUpdate ()
 
void setGravity (float x, float y, float z)
 
void removeRigidBody (RigidBody ^r)
 
void removeCollider (Collider ^c)
 
void removeVehicle (Vehicle^ v)
 
bool rayCast (SharpKmyMath::Vector3 from, SharpKmyMath::Vector3 to, unsigned short mask, RayCastHit^ hit)
 
bool rayCast (SharpKmyMath::Vector3 from, SharpKmyMath::Vector3 to, unsigned short mask, RayCastHit^ hit, PhysicsNotifyTarget^ self)
 
bool rayCast (SharpKmyMath::Vector3 from, SharpKmyMath::Vector3 to, unsigned short mask, RayCastHit^ hit, PhysicsNotifyTarget^ self, unsigned short type)
 
bool rayCast (SharpKmyMath::Vector3 from, SharpKmyMath::Vector3 to, unsigned short mask, RayCastHit^ hit, PhysicsNotifyTarget^ self, unsigned short type, int fellowId)
 
bool convexSweepTest (float radius, float height, SharpKmyMath::Vector3 from, SharpKmyMath::Vector3 to, unsigned short mask, RayCastHit^ hit)
 
bool convexSweepTest (float radius, float height, SharpKmyMath::Vector3 from, SharpKmyMath::Vector3 to, unsigned short mask, RayCastHit^ hit, PhysicsNotifyTarget^ self, unsigned short type)
 
bool convexSweepTest (float radius, float height, SharpKmyMath::Vector3 from, SharpKmyMath::Vector3 to, unsigned short mask, RayCastHit^ hit, PhysicsNotifyTarget^ self, unsigned short type, int fellowId)
 
Collider createBoxCollider (float halfWidth, float halfHeight, float halfDepth, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask)
 
Collider createSphereCollider (float radius, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask)
 
Collider createCapsuleCollider (float radius, float height, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask, int axis)
 
Collider createTriMeshCollider (array< float > ^vertices, array< unsigned short > ^indices, SharpKmyMath::Matrix4 ^mtx, SharpKmyMath::Vector3 ^scl, unsigned short group, unsigned short mask, int verticesCount, int indicesCount)
 
Collider createTriMeshCollider (System::Guid guid, SharpKmyMath::Matrix4 ^mtx, SharpKmyMath::Vector3 ^scl, unsigned short group, unsigned short mask)
 
Collider createCompoundCollider (array< float > ^boxes, SharpKmyMath::Matrix4 ^mtx, SharpKmyMath::Vector3 ^scl, unsigned short group, unsigned short mask)
 
RigidBody createBoxRigidBody (float halfWidth, float halfHeight, float halfDepth, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask)
 
RigidBody createSphereRigidBody (float radius, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask)
 
RigidBody createCapsuleRigidBody (float radius, float height, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask, int axis)
 
RigidBody createCompoundRigidBody (array< float > ^boxes, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, SharpKmyMath::Vector3 ^scl, unsigned short group, unsigned short mask)
 
RigidBody createTriMeshRigidBody (System::Guid guid, SharpKmyMath::Vector3 ^massCenter, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, SharpKmyMath::Vector3 ^scl, unsigned short group, unsigned short mask)
 
Vehicle createVehicle (float width, float height, float depth, float wheelRadius, float wheelWidth, float wheelFriction, float suspensionRestLength, float connectionHeight, float suspensionStiffness, float suspensionDamping, float suspensionCompression, float rigidbodyOffsetX, float rigidbodyOffsetY, float rigidbodyOffsetZ, float positionX, float positionY, float positionZ, float mass)
 
void update (f32 delta)
 

Constructor & Destructor Documentation

◆ PhysicsBase()

SharpKmyPhysics::PhysicsBase::PhysicsBase ( kmyPhysics::PhysicsBase *  p)

Member Function Documentation

◆ convexSweepTest() [1/3]

bool SharpKmyPhysics::PhysicsBase::convexSweepTest ( float  radius,
float  height,
SharpKmyMath::Vector3  from,
SharpKmyMath::Vector3  to,
unsigned short  mask,
RayCastHit hit 
)

◆ convexSweepTest() [2/3]

bool SharpKmyPhysics::PhysicsBase::convexSweepTest ( float  radius,
float  height,
SharpKmyMath::Vector3  from,
SharpKmyMath::Vector3  to,
unsigned short  mask,
RayCastHit hit,
PhysicsNotifyTarget self,
unsigned short  type 
)

◆ convexSweepTest() [3/3]

bool SharpKmyPhysics::PhysicsBase::convexSweepTest ( float  radius,
float  height,
SharpKmyMath::Vector3  from,
SharpKmyMath::Vector3  to,
unsigned short  mask,
RayCastHit hit,
PhysicsNotifyTarget self,
unsigned short  type,
int  fellowId 
)

◆ createBoxCollider()

Collider SharpKmyPhysics::PhysicsBase::createBoxCollider ( float  halfWidth,
float  halfHeight,
float  halfDepth,
SharpKmyMath::Matrix4 mtx,
unsigned short  group,
unsigned short  mask 
)

◆ createBoxRigidBody()

RigidBody SharpKmyPhysics::PhysicsBase::createBoxRigidBody ( float  halfWidth,
float  halfHeight,
float  halfDepth,
float  mass,
bool  kinematic,
SharpKmyMath::Matrix4 mtx,
unsigned short  group,
unsigned short  mask 
)

◆ createCapsuleCollider()

Collider SharpKmyPhysics::PhysicsBase::createCapsuleCollider ( float  radius,
float  height,
SharpKmyMath::Matrix4 mtx,
unsigned short  group,
unsigned short  mask,
int  axis 
)

◆ createCapsuleRigidBody()

RigidBody SharpKmyPhysics::PhysicsBase::createCapsuleRigidBody ( float  radius,
float  height,
float  mass,
bool  kinematic,
SharpKmyMath::Matrix4 mtx,
unsigned short  group,
unsigned short  mask,
int  axis 
)

◆ createCompoundCollider()

Collider SharpKmyPhysics::PhysicsBase::createCompoundCollider ( array< float > ^  boxes,
SharpKmyMath::Matrix4 mtx,
SharpKmyMath::Vector3 scl,
unsigned short  group,
unsigned short  mask 
)

◆ createCompoundRigidBody()

RigidBody SharpKmyPhysics::PhysicsBase::createCompoundRigidBody ( array< float > ^  boxes,
float  mass,
bool  kinematic,
SharpKmyMath::Matrix4 mtx,
SharpKmyMath::Vector3 scl,
unsigned short  group,
unsigned short  mask 
)

◆ createSphereCollider()

Collider SharpKmyPhysics::PhysicsBase::createSphereCollider ( float  radius,
SharpKmyMath::Matrix4 mtx,
unsigned short  group,
unsigned short  mask 
)

◆ createSphereRigidBody()

RigidBody SharpKmyPhysics::PhysicsBase::createSphereRigidBody ( float  radius,
float  mass,
bool  kinematic,
SharpKmyMath::Matrix4 mtx,
unsigned short  group,
unsigned short  mask 
)

◆ createTriMeshCollider() [1/2]

Collider SharpKmyPhysics::PhysicsBase::createTriMeshCollider ( array< float > ^  vertices,
array< unsigned short > ^  indices,
SharpKmyMath::Matrix4 mtx,
SharpKmyMath::Vector3 scl,
unsigned short  group,
unsigned short  mask,
int  verticesCount,
int  indicesCount 
)

◆ createTriMeshCollider() [2/2]

Collider SharpKmyPhysics::PhysicsBase::createTriMeshCollider ( System::Guid  guid,
SharpKmyMath::Matrix4 mtx,
SharpKmyMath::Vector3 scl,
unsigned short  group,
unsigned short  mask 
)

◆ createTriMeshRigidBody()

RigidBody SharpKmyPhysics::PhysicsBase::createTriMeshRigidBody ( System::Guid  guid,
SharpKmyMath::Vector3 massCenter,
float  mass,
bool  kinematic,
SharpKmyMath::Matrix4 mtx,
SharpKmyMath::Vector3 scl,
unsigned short  group,
unsigned short  mask 
)

◆ createVehicle()

Vehicle SharpKmyPhysics::PhysicsBase::createVehicle ( float  width,
float  height,
float  depth,
float  wheelRadius,
float  wheelWidth,
float  wheelFriction,
float  suspensionRestLength,
float  connectionHeight,
float  suspensionStiffness,
float  suspensionDamping,
float  suspensionCompression,
float  rigidbodyOffsetX,
float  rigidbodyOffsetY,
float  rigidbodyOffsetZ,
float  positionX,
float  positionY,
float  positionZ,
float  mass 
)

◆ lockUpdate()

void SharpKmyPhysics::PhysicsBase::lockUpdate ( )

◆ rayCast() [1/4]

bool SharpKmyPhysics::PhysicsBase::rayCast ( SharpKmyMath::Vector3  from,
SharpKmyMath::Vector3  to,
unsigned short  mask,
RayCastHit hit 
)

◆ rayCast() [2/4]

bool SharpKmyPhysics::PhysicsBase::rayCast ( SharpKmyMath::Vector3  from,
SharpKmyMath::Vector3  to,
unsigned short  mask,
RayCastHit hit,
PhysicsNotifyTarget self 
)

◆ rayCast() [3/4]

bool SharpKmyPhysics::PhysicsBase::rayCast ( SharpKmyMath::Vector3  from,
SharpKmyMath::Vector3  to,
unsigned short  mask,
RayCastHit hit,
PhysicsNotifyTarget self,
unsigned short  type 
)

◆ rayCast() [4/4]

bool SharpKmyPhysics::PhysicsBase::rayCast ( SharpKmyMath::Vector3  from,
SharpKmyMath::Vector3  to,
unsigned short  mask,
RayCastHit hit,
PhysicsNotifyTarget self,
unsigned short  type,
int  fellowId 
)

◆ removeCollider()

void SharpKmyPhysics::PhysicsBase::removeCollider ( Collider c)

◆ removeRigidBody()

void SharpKmyPhysics::PhysicsBase::removeRigidBody ( RigidBody r)

◆ removeVehicle()

void SharpKmyPhysics::PhysicsBase::removeVehicle ( Vehicle v)

◆ setGravity()

void SharpKmyPhysics::PhysicsBase::setGravity ( float  x,
float  y,
float  z 
)

◆ unlockUpdate()

void SharpKmyPhysics::PhysicsBase::unlockUpdate ( )

◆ update()

void SharpKmyPhysics::PhysicsBase::update ( f32  delta)