Class RigidBody
java.lang.Object
org.episteme.natural.physics.classical.mechanics.collision.RigidBody
Represents a rigid body in 6DOF space (3 translation + 3 rotation).
Uses Quaternions for orientation to avoid gimbal lock. Integration is performed using symplectic Euler or RK4.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyForce(Vector<Real> f, Vector<Real> p) voidapplyTorque(Vector<Real> t) doublegetMass()voidrotate(Vector<Real> v, Quaternion q) voidsetAngularVelocity(Vector<Real> angularVelocity) voidsetCollisionShape(CollisionShape shape) voidsetPosition(Vector<Real> position) voidsetVelocity(Vector<Real> velocity)
-
Constructor Details
-
RigidBody
-
-
Method Details
-
getCollisionShape
-
setCollisionShape
-
rotate
-
integrate
-
applyForce
-
applyTorque
-
getPosition
-
getOrientation
-
getVelocity
-
getAngularVelocity
-
getInertiaTensor
-
getInverseInertiaTensor
-
getMass
-
getInverseMass
-
getRotation
-
getBoundingRadius
public double getBoundingRadius() -
setPosition
-
setVelocity
-
setAngularVelocity
-