indigo icon indicating copy to clipboard operation
indigo copied to clipboard

Physics: Return deltas

Open davesmith00000 opened this issue 1 year ago • 2 comments

Could we return the rate of change of various properties, particularly velocity and position?

The use case is that for visual presentation reasons, it can be useful to know how a Collider moved last.

davesmith00000 avatar Jul 14 '23 08:07 davesmith00000

This would be nice to do, but is a little fiddly.

Couple of options:

  1. Colliders store their deltas, bit odd perhaps.
  2. The world has a separate update method that providers a wrapper with additional metadata per object, like deltas and maybe what it collided with.

davesmith00000 avatar Jul 15 '23 10:07 davesmith00000

The work around is to findByTag before the updating, and calculate the delta as needed.

davesmith00000 avatar Jul 15 '23 10:07 davesmith00000