wiki:ro

This command turns the agent a number of degrees in the transverse plane (yaw) and a looks a number of degrees in the sagittal plane (pitch). See http://en.wikipedia.org/wiki/Anatomical_terms_of_location#Planes if you are confused about what that means.

Except in fc, directions are always specified relative to a bot's current facing. All walking movement, of course, ignores pitch, but swimming does not. There is a maximum pitch of 87 degrees, and a minimum pitch of -87 (AKA 273) degrees.

Bots will attempt to move the fully specified amount: for example, "n ro 1 360 0" will cause the bot to turn in the left direction until it is facing the direction it originally faced. On the other hand, "n ro 1 0 -330" will cause the bot to look upward until it hits the -87 pitch cap, where it will end rotation (even though the intuitive effect is to look 30 degrees down).

Parameters:

  • 1: float yaw, the number of degrees to turn to the left. The bot will always turn the indicated way. May be negative to turn right.
  • 2: float pitch, the number of degrees to look down from the current view. May be negative to look up.

Reports:

  • done once turning is done. If you watch the bot, it will appear that the model rotates in successive jerks and finishes sooner than the command does. This is because the model rotation is not perfectly matched to the logical entity rotation.
  • popped if popped by po.
  • forgotten if deleted by fa or fm.
  • replaced if replaced by a command scheduled with 'r'.

Example:

  • User sends: "n ro 512 45 -30"
  • Bot turns left 45 degrees and looks 30 degrees up.
  • Bot replies "cp ro 512 done"
Last modified 14 years ago Last modified on Jun 21, 2011 1:56:20 PM