3#include "Math/Vector3.h"
13 ref class PhysicsNode;
17 ref class PhysicsBase;
18 ref class PhysicsNotifyTarget;
52 float halfWidth,
float halfHeight,
float halfDepth,
75 array<float> ^vertices,
76 array<unsigned short> ^indices,
102 float halfWidth,
float halfHeight,
float halfDepth,
106 unsigned short group,
115 unsigned short group,
125 unsigned short group,
136 unsigned short group,
147 unsigned short group,
152 float width,
float height,
float depth
153 ,
float wheelRadius,
float wheelWidth,
float wheelFriction
154 ,
float suspensionRestLength,
float connectionHeight
155 ,
float suspensionStiffness,
float suspensionDamping,
float suspensionCompression
156 ,
float rigidbodyOffsetX,
float rigidbodyOffsetY,
float rigidbodyOffsetZ
157 ,
float positionX,
float positionY,
float positionZ
164 kmyPhysics::PhysicsBase *obj =
nullptr;
Collider createSphereCollider(float radius, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask)
Definition: Physics.cpp:177
PhysicsBase(kmyPhysics::PhysicsBase *p)
Definition: Physics.cpp:5
void removeRigidBody(RigidBody ^r)
Definition: Physics.cpp:25
void removeCollider(Collider ^c)
Definition: Physics.cpp:33
RigidBody createCapsuleRigidBody(float radius, float height, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask, int axis)
Definition: Physics.cpp:401
RigidBody createCompoundRigidBody(array< float > ^boxes, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, SharpKmyMath::Vector3 ^scl, unsigned short group, unsigned short mask)
Definition: Physics.cpp:430
RigidBody createSphereRigidBody(float radius, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask)
Definition: Physics.cpp:377
void removeVehicle(Vehicle^ v)
Definition: Physics.cpp:41
Collider createBoxCollider(float halfWidth, float halfHeight, float halfDepth, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask)
Definition: Physics.cpp:126
void setGravity(float x, float y, float z)
Definition: Physics.cpp:20
RigidBody createTriMeshRigidBody(System::Guid guid, SharpKmyMath::Vector3 ^massCenter, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, SharpKmyMath::Vector3 ^scl, unsigned short group, unsigned short mask)
Definition: Physics.cpp:465
void lockUpdate()
Definition: Physics.cpp:10
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)
Definition: Physics.cpp:222
bool rayCast(SharpKmyMath::Vector3 from, SharpKmyMath::Vector3 to, unsigned short mask, RayCastHit^ hit, PhysicsNotifyTarget^ self, unsigned short type)
Collider createCompoundCollider(array< float > ^boxes, SharpKmyMath::Matrix4 ^mtx, SharpKmyMath::Vector3 ^scl, unsigned short group, unsigned short mask)
Definition: Physics.cpp:146
void unlockUpdate()
Definition: Physics.cpp:15
RigidBody createBoxRigidBody(float halfWidth, float halfHeight, float halfDepth, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask)
Definition: Physics.cpp:353
void update(f32 delta)
Definition: Physics.cpp:587
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)
Definition: Physics.cpp:559
Collider createCapsuleCollider(float radius, float height, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask, int axis)
Definition: Physics.cpp:197
bool convexSweepTest(float radius, float height, SharpKmyMath::Vector3 from, SharpKmyMath::Vector3 to, unsigned short mask, RayCastHit^ hit)
Definition: Physics.cpp:90
bool rayCast(SharpKmyMath::Vector3 from, SharpKmyMath::Vector3 to, unsigned short mask, RayCastHit^ hit)
Definition: Physics.cpp:49
Definition: PhysicsNode.h:17
Definition: NativePhysicsNotifyTarget.h:26
int triangleIndex
Definition: Physics.h:27
PhysicsNode node
Definition: Physics.h:23
SharpKmyMath::Vector3 position
Definition: Physics.h:24
float distance
Definition: Physics.h:26
SharpKmyMath::Vector3 normal
Definition: Physics.h:25
Definition: RigidBody.h:9
Definition: RefCapture.h:3
Definition: Billboard.h:6