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_dbgDrawSize = DEFAULT_DEBUGDRAW_SIZE; { s_fixed.SetMassProps(0f,Vector3.Zero); } }
public TypedConstraint(TypedConstraintType type, RigidBody rbA, RigidBody rbB) : base((int)type) { m_userConstraintType = -1; m_userConstraintId = -1; m_constraintType = type; m_rbA = rbA; m_rbB = rbB; m_appliedImpulse = 0f; m_breakingImpulseThreshold = MathUtil.SIMD_INFINITY; m_isEnabled = true; m_dbgDrawSize = DEFAULT_DEBUGDRAW_SIZE; { GetFixedBody().SetMassProps(0f, IndexedVector3.Zero); } }
public TypedConstraint(TypedConstraintType type, RigidBody rbA, RigidBody rbB) : base((int)type) { m_userConstraintType = -1; m_userConstraintId = -1; m_constraintType = type; m_rbA = rbA; m_rbB = rbB; m_appliedImpulse = 0f; m_breakingImpulseThreshold = MathUtil.SIMD_INFINITY; m_isEnabled = true; m_dbgDrawSize = DEFAULT_DEBUGDRAW_SIZE; { GetFixedBody().SetMassProps(0f, IndexedVector3.Zero); } }