Contents
Interface ForceProvider
- All Known Implementing Classes:
ForceProviderEntity, ForceProviderStandard
public interface ForceProvider
- Since:
- 2020-03-05
-
Method Summary
Modifier and TypeMethodDescriptionvoidupdate(PhysicsBodyState state, ForceAccumulator accumulator, boolean onGround) Compute one or multiple forces acting on a physics body and add them to accumulator.
-
Method Details
-
update
Compute one or multiple forces acting on a physics body and add them to accumulator.- Parameters:
state- Current position and velocity of bodyaccumulator- Accumulator to add forces toonGround- Whether body is on ground currently
-