Logo
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SharpKmyPhysics::PhysicsObject Class Reference

#include <PhysicsObject.h>

Public Member Functions

 PhysicsObject ()
 
 PhysicsObject (kmyPhysics::PhysicsObject *o)
 
 ~PhysicsObject ()
 
void clearPhysics ()
 
void setFellowId (int id)
 
void setLocalMatrix (SharpKmyMath::Matrix4 mtx)
 
void setLocalMatrixWithoutScale (SharpKmyMath::Matrix4 mtx)
 
void setTranslate (SharpKmyMath::Vector3 trans)
 
void setRotate (SharpKmyMath::Quat q)
 
void setScale (SharpKmyMath::Vector3 scale)
 
void setRigidBody (SharpKmyPhysics::RigidBody^ rb, SharpKmyMath::Matrix4 offset)
 
void addRigidBody (SharpKmyPhysics::RigidBody^ rb, System::String ^nodename, SharpKmyMath::Matrix4 offset, System::String^ objname, bool controlRigidBody)
 
void addCollider (SharpKmyPhysics::Collider^ cd, System::String ^nodename, SharpKmyMath::Matrix4 offset, System::String^ objname)
 
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)
 
void resetRigidBodyPosition ()
 
SharpKmyMath::Matrix4 getNodeWorldMatrix (System::String^ name)
 
SharpKmyPhysics::RigidBody getRigidBody (System::String^ name)
 
SharpKmyPhysics::Collider getCollider (System::String^ name)
 
void setDisplayID (u32 displayID)
 
u32 getDisplayID ()
 
void setParent (PhysicsObject^ parent, System::String^ nodename)
 
void updateMatrix ()
 
SharpKmyMath::Matrix4 getWorldMatrix ()
 
void enable ()
 
void disable ()
 
void activate ()
 
bool isEnableSelf ()
 
bool isEnableInHierarchy ()
 

Static Public Member Functions

static void addInactiveDisplayID (u32 id)
 
static void removeInactiveDisplayID (u32 id)
 
static void clearInactiveDisplayID ()
 

Public Attributes

kmyPhysics::PhysicsObject * obj = nullptr
 
bool ownptr = false
 

Constructor & Destructor Documentation

◆ PhysicsObject() [1/2]

SharpKmyPhysics::PhysicsObject::PhysicsObject ( )

◆ PhysicsObject() [2/2]

SharpKmyPhysics::PhysicsObject::PhysicsObject ( kmyPhysics::PhysicsObject *  o)

◆ ~PhysicsObject()

SharpKmyPhysics::PhysicsObject::~PhysicsObject ( )

Member Function Documentation

◆ activate()

void SharpKmyPhysics::PhysicsObject::activate ( )

◆ addCollider()

void SharpKmyPhysics::PhysicsObject::addCollider ( SharpKmyPhysics::Collider cd,
System::String ^  nodename,
SharpKmyMath::Matrix4  offset,
System::String^  objname 
)

◆ addInactiveDisplayID()

void SharpKmyPhysics::PhysicsObject::addInactiveDisplayID ( u32  id)
static

◆ addRigidBody()

void SharpKmyPhysics::PhysicsObject::addRigidBody ( SharpKmyPhysics::RigidBody rb,
System::String ^  nodename,
SharpKmyMath::Matrix4  offset,
System::String^  objname,
bool  controlRigidBody 
)

◆ addSixDofConstraint()

void SharpKmyPhysics::PhysicsObject::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 
)

◆ clearInactiveDisplayID()

void SharpKmyPhysics::PhysicsObject::clearInactiveDisplayID ( )
static

◆ clearPhysics()

void SharpKmyPhysics::PhysicsObject::clearPhysics ( )

◆ disable()

void SharpKmyPhysics::PhysicsObject::disable ( )

◆ enable()

void SharpKmyPhysics::PhysicsObject::enable ( )

◆ getCollider()

SharpKmyPhysics::Collider SharpKmyPhysics::PhysicsObject::getCollider ( System::String^  name)

◆ getDisplayID()

u32 SharpKmyPhysics::PhysicsObject::getDisplayID ( )

◆ getNodeWorldMatrix()

SharpKmyMath::Matrix4 SharpKmyPhysics::PhysicsObject::getNodeWorldMatrix ( System::String^  name)

◆ getRigidBody()

SharpKmyPhysics::RigidBody SharpKmyPhysics::PhysicsObject::getRigidBody ( System::String^  name)

◆ getWorldMatrix()

SharpKmyMath::Matrix4 SharpKmyPhysics::PhysicsObject::getWorldMatrix ( )

◆ isEnableInHierarchy()

bool SharpKmyPhysics::PhysicsObject::isEnableInHierarchy ( )

◆ isEnableSelf()

bool SharpKmyPhysics::PhysicsObject::isEnableSelf ( )

◆ removeInactiveDisplayID()

void SharpKmyPhysics::PhysicsObject::removeInactiveDisplayID ( u32  id)
static

◆ resetRigidBodyPosition()

void SharpKmyPhysics::PhysicsObject::resetRigidBodyPosition ( )

◆ setDisplayID()

void SharpKmyPhysics::PhysicsObject::setDisplayID ( u32  displayID)

◆ setFellowId()

void SharpKmyPhysics::PhysicsObject::setFellowId ( int  id)

◆ setLocalMatrix()

void SharpKmyPhysics::PhysicsObject::setLocalMatrix ( SharpKmyMath::Matrix4  mtx)

◆ setLocalMatrixWithoutScale()

void SharpKmyPhysics::PhysicsObject::setLocalMatrixWithoutScale ( SharpKmyMath::Matrix4  mtx)

◆ setParent()

void SharpKmyPhysics::PhysicsObject::setParent ( PhysicsObject parent,
System::String^  nodename 
)

◆ setRigidBody()

void SharpKmyPhysics::PhysicsObject::setRigidBody ( SharpKmyPhysics::RigidBody rb,
SharpKmyMath::Matrix4  offset 
)

◆ setRotate()

void SharpKmyPhysics::PhysicsObject::setRotate ( SharpKmyMath::Quat  q)

◆ setScale()

void SharpKmyPhysics::PhysicsObject::setScale ( SharpKmyMath::Vector3  scale)

◆ setTranslate()

void SharpKmyPhysics::PhysicsObject::setTranslate ( SharpKmyMath::Vector3  trans)

◆ updateMatrix()

void SharpKmyPhysics::PhysicsObject::updateMatrix ( )

Member Data Documentation

◆ obj

kmyPhysics::PhysicsObject* SharpKmyPhysics::PhysicsObject::obj = nullptr

◆ ownptr

bool SharpKmyPhysics::PhysicsObject::ownptr = false