clipmoves( set )


Parameters

  Type Description
set boolean enable or disable movement clipping

_result

Not set.

Descriptions

Enables or disables movement clipping. If set evaluates to true, movement clipping is enabled. If set evaluates to false, clipping is disabled. If clipmoves is not called during a game, movement clipping defaults to true.

Movement clipping limits the distance a robot attempts to move during calls to the ahead and back commands. If a robot enables movement clipping and moves in a straight line, it will never collide with a wall since the distance is automatically "clipped" to prevent wall collisions. If a robot rotates while moving, however, it may still collide with a wall when movement clipping is enabled because the distance is clipped at the start of a move not while the movement is occurring.

When movement clipping is disabled, the values passed to ahead and back are used directly. A robot will continue attempting to move forward or backward even after it has hit a wall.

See Also

ahead, back