Physics Basic Shape: StopMovement

Stop any in progress motion of a GoToPosition function call and leaves the shape in its current position. If the shape isn’t moving, this function does nothing.

Function

void StopMovement();

Example

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