Beispiel #1
0
// SetInertiaTensor sets the InverseInertiaTensor member of the RigidBody
// by calculating the inverse of the matrix supplied.
func (body *RigidBody) SetInertiaTensor(m *m.Matrix3) {
	body.InverseInertiaTensor = m.Invert()
}