Get View Angels
This command stores the view angles of the user... The view angles relate to Flight dynamics. It will return a callback function, passing the userid and the pitch, yaw and roll.
- Pitch - Imagine a person doing a backflip. When he is halfway through, you could say he has a pitch of 180. Pitch is measured this way
- Yaw - This is like going round on a round-about. It will measure your position on the 'round-about'.
- Roll - The is likedoing a corkscrew on a roller-coaster. It will measure your current position thorough the 'roll'.
The correct syntax is:
wcs.Command(<userid>).GetViewAngles()
- Userid - This is the userid to get the view angles in.
- Callback-Function - The function that will be run when the command has activated.
- Optional: additonal parameters - Pass any other parameters you want to pass to the other method here.
Example:
def player_say(ev):
if ev["text"] == "view angles":
wcs.Command(ev["userid"]).GetViewAngles(viewAngles)
def viewAngles(userid, pitch, yaw, roll):
es.tell(userid, "Pitch : %s - Yaw : %s - Roll : %s"%(pitch,yaw,roll))
Comments (0)
You don't have permission to comment on this page.