예제 #1
0
파일: rigidbody.go 프로젝트: tbogdala/cubez
// 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()
}