예제 #1
0
 public TypedConstraint(TypedConstraintType type, RigidBody rbA)
     : base((int)type)
 {
     m_userConstraintType = -1;
     m_userConstraintId   = -1;
     m_constraintType     = type;
     m_rbA                      = rbA;
     m_rbB                      = GetFixedBody();
     m_appliedImpulse           = 0f;
     m_breakingImpulseThreshold = MathUtil.SIMD_INFINITY;
     m_isEnabled                = true;
     m_dbgDrawSize              = DEFAULT_DEBUGDRAW_SIZE;
     {
         s_fixed.SetMassProps(0f, IndexedVector3.Zero);
     }
 }