Ejemplo n.º 1
0
        public HingeConstraint AddHingeConstraint(RigidBody rigidBodyA, RigidBody rigidBodyB, float4x4 brAFrame, float4x4 brBFrame, bool useReferenceFrameA = false)
        {
            IHingeConstraintImp ip2pci = _dwi.AddHingeConstraint(rigidBodyA._iRigidBodyImp, rigidBodyB._iRigidBodyImp, brAFrame, brBFrame, useReferenceFrameA);
            var retval = new HingeConstraint();

            retval._iHConstraintImp = ip2pci;
            ip2pci.UserObject       = retval;
            return(retval);
        }
Ejemplo n.º 2
0
        public HingeConstraint AddHingeConstraint(RigidBody rigidBodyA, RigidBody rigidBodyB, float3 pivotInA, float3 pivotInB, float3 axisInA, float3 axisInB, bool useReferenceFrameA = false)
        {
            IHingeConstraintImp ip2pci = _dwi.AddHingeConstraint(rigidBodyA._iRigidBodyImp, rigidBodyB._iRigidBodyImp, pivotInA, pivotInB, axisInA, axisInB, useReferenceFrameA);
            var retval = new HingeConstraint();

            retval._iHConstraintImp = ip2pci;
            ip2pci.UserObject       = retval;
            return(retval);
        }