public btVector3 getOrigin()
{
btVector3 ret = new btVector3(LinearMathPINVOKE.btTransform_getOrigin__SWIG_0(swigCPtr), false);
return ret;
}
void Update() { if( rigidBodyObj != null && myMotionState != null ) { btTransform ts = new btTransform(); myMotionState.getWorldTransform(ts); btVector3 vecOut = ts.getOrigin(); btQuaternion rot = ts.getRotation(); gameObject.transform.position = new Vector3(vecOut.getX(),vecOut.getY(),vecOut.getZ()); gameObject.transform.rotation = new Quaternion(rot.x(),rot.y(),rot.z(),rot.w()); } }