public override RigidBody GetOwner() { IntPtr pFunc = PropertyFunc.ExGetFunc(base.m_pItem, 0); IntPtr pItem = PropertyFunc.ExFuncInvokeObject(pFunc); PropertyFunc.ExFuncRelease(pFunc); return(RuntimeObject.FromPtr(pItem) as RigidBody); }
public bool IsMember(RigidBody body) { IntPtr pFunc = PropertyFunc.ExGetFunc(base.m_pItem, 3); PropertyFunc.ExSetFuncArgObject(pFunc, 0, body.GetPtr()); bool flag = PropertyFunc.ExFuncInvokeBool(pFunc) != 0; PropertyFunc.ExFuncRelease(pFunc); return(flag); }
public bool IsMember(CollisionBody part) { IntPtr pFunc = PropertyFunc.ExGetFunc(base.m_pItem, 3); PropertyFunc.ExSetFuncArgObject(pFunc, 0, part.GetPtr()); bool flag = PropertyFunc.ExFuncInvokeBool(pFunc) != 0; PropertyFunc.ExFuncRelease(pFunc); return(flag); }
public void ApplyTorque(Vector3 torque) { IntPtr pFunc = PropertyFunc.ExGetFunc(base.m_pItem, 3); PropertyFunc.ExSetFuncArgFloat(pFunc, 0, torque.x); PropertyFunc.ExSetFuncArgFloat(pFunc, 1, torque.y); PropertyFunc.ExSetFuncArgFloat(pFunc, 2, torque.z); PropertyFunc.ExFuncInvokeVoid(pFunc); PropertyFunc.ExFuncRelease(pFunc); }
public void ApplyForce(Vector3 force) { IntPtr pFunc = PropertyFunc.ExGetFunc(base.m_pItem, 2); PropertyFunc.ExSetFuncArgFloat(pFunc, 0, force.x); PropertyFunc.ExSetFuncArgFloat(pFunc, 1, force.y); PropertyFunc.ExSetFuncArgFloat(pFunc, 2, force.z); PropertyFunc.ExFuncInvokeVoid(pFunc); PropertyFunc.ExFuncRelease(pFunc); }