Exemplo n.º 1
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);
        }
Exemplo n.º 2
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);
        }