Method: BulldogPhysics::Matrix3#setBlockInertiaTensor
- Defined in:
- lib/matrix3.rb
#setBlockInertiaTensor(vHalfSizes, mass) ⇒ Object
199 200 201 202 203 204 |
# File 'lib/matrix3.rb', line 199 def setBlockInertiaTensor(vHalfSizes, mass) squares = vHalfSizes.componentProduct(vHalfSizes) setInertiaTensorCoeffs(0.3 * mass * (squares.y + squares.z), 0.3 * mass * (squares.x + squares.z), 0.3 * mass * (squares.x + squares.y)) end |