User Tools

Site Tools


4rpl:commands:rotatetowardscell

This is an old revision of the document!


Index

RotateTowardsCell

RotateTowardsCell(<-sx <-sz <-tx <-tz <-maxDegrees) ->angZ ->angX

Description

Similar to RotatedTowards but operations only in 2 dimensions. Rotates a start vector (ss, sz) towards a target vector (tx,tz). Will not move more than maxDegrees. The resulting vector is pushed to the stack as two floats. Each vector is treated as a direction rather than a position. If negative maxDegrees is specified, the result is a vector that rotates away from the target vector.

Examples

RotateTowardsCell(1 0 1 1 10) ->angZ ->angX

Index

4rpl/commands/rotatetowardscell.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)