timeInFrame
Constructor and Description |
---|
CollisionBodyWall(MotionTargetPanzer colliderTgt,
Angle wallNormal,
double time) |
Modifier and Type | Method and Description |
---|---|
static CollisionBodyWall |
discoverCollision(MotionTargetPanzer colliderTgt,
Angle wallNormal,
double time)
However reason the wall has to exist, this call creates a collision with it unconditionally.
|
void |
react(SimulationState state,
java.util.List<MotionTargetPanzer> panzerTargets,
SimulationMode simulationMode)
Performs collision effects.
|
compareTo, discoverCollisions, getTimeInFrame, rediscoverCollisions
public CollisionBodyWall(MotionTargetPanzer colliderTgt, Angle wallNormal, double time)
colliderTgt
- - the Body
to collidewallNormal
- - global axes; caller must precalculate that;
must point to the colliderTgt
to be effective (will only apply a braking force)time
- - may be of relevance for collision priority;
supply a time near the end of the collision frame as default.public static CollisionBodyWall discoverCollision(MotionTargetPanzer colliderTgt, Angle wallNormal, double time)
colliderTgt
- - the Body
to collidewallNormal
- - global axes; caller must precalculate that;
must point to the colliderTgt
to be effective (will only apply a braking force)time
- - may be of relevance for collision priority;
supply a time near the end of the collision frame as default.public void react(SimulationState state, java.util.List<MotionTargetPanzer> panzerTargets, SimulationMode simulationMode)
Collision