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:209
PhysicsBase(kmyPhysics::PhysicsBase *p)
Definition: Physics.cpp:5
void removeRigidBody(RigidBody ^r)
Definition: Physics.cpp:33
void removeCollider(Collider ^c)
Definition: Physics.cpp:43
RigidBody createCapsuleRigidBody(float radius, float height, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask, int axis)
Definition: Physics.cpp:445
RigidBody createCompoundRigidBody(array< float > ^boxes, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, SharpKmyMath::Vector3 ^scl, unsigned short group, unsigned short mask)
Definition: Physics.cpp:476
RigidBody createSphereRigidBody(float radius, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask)
Definition: Physics.cpp:419
void removeVehicle(Vehicle^ v)
Definition: Physics.cpp:53
Collider createBoxCollider(float halfWidth, float halfHeight, float halfDepth, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask)
Definition: Physics.cpp:154
void setGravity(float x, float y, float z)
Definition: Physics.cpp:26
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:513
void lockUpdate()
Definition: Physics.cpp:12
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:258
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:176
void unlockUpdate()
Definition: Physics.cpp:19
RigidBody createBoxRigidBody(float halfWidth, float halfHeight, float halfDepth, float mass, bool kinematic, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask)
Definition: Physics.cpp:393
void update(f32 delta)
Definition: Physics.cpp:639
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:609
Collider createCapsuleCollider(float radius, float height, SharpKmyMath::Matrix4 ^mtx, unsigned short group, unsigned short mask, int axis)
Definition: Physics.cpp:231
bool convexSweepTest(float radius, float height, SharpKmyMath::Vector3 from, SharpKmyMath::Vector3 to, unsigned short mask, RayCastHit^ hit)
Definition: Physics.cpp:112
bool rayCast(SharpKmyMath::Vector3 from, SharpKmyMath::Vector3 to, unsigned short mask, RayCastHit^ hit)
Definition: Physics.cpp:63
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