#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) |
SharpKmyPhysics::PhysicsBase::PhysicsBase | ( | kmyPhysics::PhysicsBase * | p | ) |
bool SharpKmyPhysics::PhysicsBase::convexSweepTest | ( | float | radius, |
float | height, | ||
SharpKmyMath::Vector3 | from, | ||
SharpKmyMath::Vector3 | to, | ||
unsigned short | mask, | ||
RayCastHit^ | hit | ||
) |
bool SharpKmyPhysics::PhysicsBase::convexSweepTest | ( | float | radius, |
float | height, | ||
SharpKmyMath::Vector3 | from, | ||
SharpKmyMath::Vector3 | to, | ||
unsigned short | mask, | ||
RayCastHit^ | hit, | ||
PhysicsNotifyTarget^ | self, | ||
unsigned short | type | ||
) |
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 | ||
) |
Collider SharpKmyPhysics::PhysicsBase::createBoxCollider | ( | float | halfWidth, |
float | halfHeight, | ||
float | halfDepth, | ||
SharpKmyMath::Matrix4 ^ | mtx, | ||
unsigned short | group, | ||
unsigned short | mask | ||
) |
RigidBody SharpKmyPhysics::PhysicsBase::createBoxRigidBody | ( | float | halfWidth, |
float | halfHeight, | ||
float | halfDepth, | ||
float | mass, | ||
bool | kinematic, | ||
SharpKmyMath::Matrix4 ^ | mtx, | ||
unsigned short | group, | ||
unsigned short | mask | ||
) |
Collider SharpKmyPhysics::PhysicsBase::createCapsuleCollider | ( | float | radius, |
float | height, | ||
SharpKmyMath::Matrix4 ^ | mtx, | ||
unsigned short | group, | ||
unsigned short | mask, | ||
int | axis | ||
) |
RigidBody SharpKmyPhysics::PhysicsBase::createCapsuleRigidBody | ( | float | radius, |
float | height, | ||
float | mass, | ||
bool | kinematic, | ||
SharpKmyMath::Matrix4 ^ | mtx, | ||
unsigned short | group, | ||
unsigned short | mask, | ||
int | axis | ||
) |
Collider SharpKmyPhysics::PhysicsBase::createCompoundCollider | ( | array< float > ^ | boxes, |
SharpKmyMath::Matrix4 ^ | mtx, | ||
SharpKmyMath::Vector3 ^ | scl, | ||
unsigned short | group, | ||
unsigned short | mask | ||
) |
RigidBody SharpKmyPhysics::PhysicsBase::createCompoundRigidBody | ( | array< float > ^ | boxes, |
float | mass, | ||
bool | kinematic, | ||
SharpKmyMath::Matrix4 ^ | mtx, | ||
SharpKmyMath::Vector3 ^ | scl, | ||
unsigned short | group, | ||
unsigned short | mask | ||
) |
Collider SharpKmyPhysics::PhysicsBase::createSphereCollider | ( | float | radius, |
SharpKmyMath::Matrix4 ^ | mtx, | ||
unsigned short | group, | ||
unsigned short | mask | ||
) |
RigidBody SharpKmyPhysics::PhysicsBase::createSphereRigidBody | ( | float | radius, |
float | mass, | ||
bool | kinematic, | ||
SharpKmyMath::Matrix4 ^ | mtx, | ||
unsigned short | group, | ||
unsigned short | mask | ||
) |
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 | ||
) |
Collider SharpKmyPhysics::PhysicsBase::createTriMeshCollider | ( | System::Guid | guid, |
SharpKmyMath::Matrix4 ^ | mtx, | ||
SharpKmyMath::Vector3 ^ | scl, | ||
unsigned short | group, | ||
unsigned short | mask | ||
) |
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 | ||
) |
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 | ||
) |
void SharpKmyPhysics::PhysicsBase::lockUpdate | ( | ) |
bool SharpKmyPhysics::PhysicsBase::rayCast | ( | SharpKmyMath::Vector3 | from, |
SharpKmyMath::Vector3 | to, | ||
unsigned short | mask, | ||
RayCastHit^ | hit | ||
) |
bool SharpKmyPhysics::PhysicsBase::rayCast | ( | SharpKmyMath::Vector3 | from, |
SharpKmyMath::Vector3 | to, | ||
unsigned short | mask, | ||
RayCastHit^ | hit, | ||
PhysicsNotifyTarget^ | self | ||
) |
bool SharpKmyPhysics::PhysicsBase::rayCast | ( | SharpKmyMath::Vector3 | from, |
SharpKmyMath::Vector3 | to, | ||
unsigned short | mask, | ||
RayCastHit^ | hit, | ||
PhysicsNotifyTarget^ | self, | ||
unsigned short | type | ||
) |
bool SharpKmyPhysics::PhysicsBase::rayCast | ( | SharpKmyMath::Vector3 | from, |
SharpKmyMath::Vector3 | to, | ||
unsigned short | mask, | ||
RayCastHit^ | hit, | ||
PhysicsNotifyTarget^ | self, | ||
unsigned short | type, | ||
int | fellowId | ||
) |
void SharpKmyPhysics::PhysicsBase::removeCollider | ( | Collider ^ | c | ) |
void SharpKmyPhysics::PhysicsBase::removeRigidBody | ( | RigidBody ^ | r | ) |
void SharpKmyPhysics::PhysicsBase::removeVehicle | ( | Vehicle^ | v | ) |
void SharpKmyPhysics::PhysicsBase::setGravity | ( | float | x, |
float | y, | ||
float | z | ||
) |
void SharpKmyPhysics::PhysicsBase::unlockUpdate | ( | ) |
void SharpKmyPhysics::PhysicsBase::update | ( | f32 | delta | ) |