flight-rs / flight

Flight is a library for creating advanced VR applications in the Rust programming language.
https://flight-rs.github.io/flight
MIT License
5 stars 2 forks source link

Trackable velocity #5

Open samsartor opened 7 years ago

samsartor commented 7 years ago

Trackable objects need velocity data. Both linear and rotational. ViveController currently has a pose_delta, but that isn't very helpful for physics and momentum and stuff. There should be a way to get the tracked object's instantaneous velocity.

The length of the linear vector is speed (m/s). The direction of the linear vector is direction of movement. The length of the angular vector is speed (radians/s). The direction of the angular vector is the axis of spin.

samsartor commented 6 years ago

Simple implementation from 7bdf668f4308275c4e432501fbf98c106c45a714

Moment velocities might require #3