Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        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);
        }