3#include "Math/Matrix4.h"
4#include "math/Vector3.h"
18 kmyPhysics::PhysicsObject*
obj =
nullptr;
26 if (
obj)
obj->clearPhysics();
29 if (
obj)
obj->setFellowId(
id);
48 array<float> ^stiffnes,
49 array<float> ^damping);
Definition: PhysicsObject.h:17
void setParent(PhysicsObject^ parent, System::String^ nodename)
Definition: PhysicsObject.cpp:183
void setRigidBody(SharpKmyPhysics::RigidBody^ rb, SharpKmyMath::Matrix4 offset)
Definition: PhysicsObject.cpp:30
static void clearInactiveDisplayID()
Definition: PhysicsObject.cpp:310
void resetRigidBodyPosition()
Definition: PhysicsObject.cpp:130
void addRigidBody(SharpKmyPhysics::RigidBody^ rb, System::String ^nodename, SharpKmyMath::Matrix4 offset, System::String^ objname, bool controlRigidBody)
Definition: PhysicsObject.cpp:43
static void removeInactiveDisplayID(u32 id)
Definition: PhysicsObject.cpp:304
void addSixDofConstraint(System::String^ nameA, System::String^ nameB, SharpKmyMath::Vector3 worldPivot, SharpKmyMath::Vector3 lowerSlideLimit, SharpKmyMath::Vector3 upperSlideLimit, SharpKmyMath::Vector3 lowerAngularLimit, SharpKmyMath::Vector3 upperAngularLimit, array< bool > ^spring, array< float > ^stiffnes, array< float > ^damping)
Definition: PhysicsObject.cpp:71
kmyPhysics::PhysicsObject * obj
Definition: PhysicsObject.h:18
void addCollider(SharpKmyPhysics::Collider^ cd, System::String ^nodename, SharpKmyMath::Matrix4 offset, System::String^ objname)
Definition: PhysicsObject.cpp:57
SharpKmyMath::Matrix4 getNodeWorldMatrix(System::String^ name)
Definition: PhysicsObject.cpp:139
~PhysicsObject()
Definition: PhysicsObject.cpp:20
void setLocalMatrixWithoutScale(SharpKmyMath::Matrix4 mtx)
Definition: PhysicsObject.cpp:219
void disable()
Definition: PhysicsObject.cpp:270
u32 getDisplayID()
Definition: PhysicsObject.h:57
void setTranslate(SharpKmyMath::Vector3 trans)
Definition: PhysicsObject.cpp:198
void enable()
Definition: PhysicsObject.cpp:263
bool isEnableInHierarchy()
Definition: PhysicsObject.cpp:287
void setFellowId(int id)
Definition: PhysicsObject.h:28
bool isEnableSelf()
Definition: PhysicsObject.cpp:277
void clearPhysics()
Definition: PhysicsObject.h:25
SharpKmyPhysics::Collider getCollider(System::String^ name)
Definition: PhysicsObject.cpp:163
void setDisplayID(u32 displayID)
Definition: PhysicsObject.h:56
SharpKmyPhysics::RigidBody getRigidBody(System::String^ name)
Definition: PhysicsObject.cpp:152
bool ownptr
Definition: PhysicsObject.h:19
PhysicsObject()
Definition: PhysicsObject.cpp:5
static void addInactiveDisplayID(u32 id)
Definition: PhysicsObject.cpp:298
void setLocalMatrix(SharpKmyMath::Matrix4 mtx)
Definition: PhysicsObject.cpp:235
void setScale(SharpKmyMath::Vector3 scale)
Definition: PhysicsObject.cpp:212
void updateMatrix()
Definition: PhysicsObject.cpp:192
void activate()
Definition: PhysicsObject.cpp:175
SharpKmyMath::Matrix4 getWorldMatrix()
Definition: PhysicsObject.cpp:252
void setRotate(SharpKmyMath::Quat q)
Definition: PhysicsObject.cpp:205
Definition: RigidBody.h:9
Definition: Billboard.h:6
Definition: PhysicsNode.h:7