TurnToward Method

See Also Applies To Example Model

Turns in the direction toward a specified object.

object expression.TurnToward (Object)

object expression    Required. An object expression that evaluates to an object in the Applies To list.

Object    Required VObject. An object of type Bot, Cell, or VPoint.

Example

The following example uses the TurnToward method to turn a Bot object toward from another Bot.

Bot.TurnToward otherBot