diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-12-07 18:09:54 -0700 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-12-10 15:55:40 -0700 |
commit | 940f3fde5c5f902b6efd0f35fb6c7d23edd1da14 (patch) | |
tree | 1af330b010e4234cfe2694e94d25756c8e4e3734 /core/math/vector3.h | |
parent | e69fa16eb3cd4cf4a591eb4c533b9eff45f79850 (diff) |
Improve RigidDynamicBody force and torque API
Makes the API for forces and impulses more flexible, easier to
understand and harmonized between 2D and 3D.
Rigid bodies now have 3 sets of methods for forces and impulses:
-apply_impulse() for impulses (one-shot and time independent)
-apply_force() for forces (time dependent) applied for the current step
-add_constant_force() for forces that keeps being applied each step
Also updated the documentation to clarify the different methods and
parameters in rigid body nodes, body direct state and physics servers.
Diffstat (limited to 'core/math/vector3.h')
0 files changed, 0 insertions, 0 deletions