Skip to content

VelocityDynamicMaterialFloatDriver

Inheritance 2 ancestors · 48 siblings

Class Documentation

Edit documentation

A float driver that returns the recent ground speed of the source, in world units per second.

The client keeps the last ten positions of a unit with their times. The driver adds up the distance along those positions and divides it by the time they span, so the value is an average over the recent past, not the speed of this frame. Height is ignored.

The source must be a unit. Without one the driver returns 0.