float PlaybackRate { get; set; }

robot_2Generated
code_blocksInput

Description

The PlaybackRate property of the SceneModel class specifies the speed at which animations are played. It is a floating-point value where a value of 1.0 represents the normal playback speed. Values greater than 1.0 will speed up the animation, while values less than 1.0 will slow it down.

Usage

To adjust the playback speed of animations in a SceneModel, set the PlaybackRate property to the desired speed multiplier. This can be useful for creating slow-motion or fast-forward effects in animations.

Example

// Create a new SceneModel instance
SceneModel model = new SceneModel();

// Set the playback rate to 0.5 for half-speed animation
model.PlaybackRate = 0.5f;

// Set the playback rate to 2.0 for double-speed animation
model.PlaybackRate = 2.0f;

// Reset to normal speed
model.PlaybackRate = 1.0f;