IVelocityCalculator Interface
Defines a velocity calculation system for throwing mechanics in the
Interaction SDK.
This interface provides methods and events for calculating, tracking, and notifying about throw velocities, particularly useful for implementing realistic throwing behaviors for virtual objects.
This interface extends
IThrowVelocityCalculator and adds additional functionality for:
Real-time velocity updates and notifications
Historical velocity tracking
Configurable update frequency for velocity calculations
Note: This interface is marked as obsolete. Use
IThrowVelocityCalculator directly instead.
float UpdateFrequency[Get]
Gets the frequency at which the velocity calculations are updated.
The frequency is calculated in updates per second.
Action< List< ReleaseVelocityInformation > > WhenThrowVelocitiesChanged
Event triggered when the throw velocities are recalculated, providing a list of all current ReleaseVelocityInformation.
Action< ReleaseVelocityInformation > WhenNewSampleAvailable
Event triggered when a new velocity sample becomes available.
This is used for real-time velocity updates.
IReadOnlyList< ReleaseVelocityInformation > LastThrowVelocities ( )
Retrieves the most recently calculated ReleaseVelocityInformation.
ReturnsA read-only list of velocity information from the last calculation.
void SetUpdateFrequency ( float frequency )
Configures the frequency at which velocity calculations are updated.
ParametersfrequencyThe desired update frequency in updates per second.