Physics Basic Shape: StopRotation

Stop any in progress rotation of a Rotate function call and leaves the shape in its current rotation. If the shape isn’t rotating, this function does nothing.

Function

void StopRotation();

Example

function OnSimulationStart()
{
    let shape = GetComponentByNameAndType("PhysicsBasicShape1", "Physics Basic Shape");
    shape.Rotate(10, 10, 0, 2, 2, 0);
    SetTimerEx(1, 2000, function() { shape.StopRotation(); }, shape);
}