Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How Do I? (http://www.alice.org/community/forumdisplay.php?f=28)
-   -   Alice rotations (http://www.alice.org/community/showthread.php?t=1190)

MickChang 02-13-2008 02:06 PM

Alice rotations
 
Hello, can Alice 3.0 body rotation methods be renamed with engineering concepts of pitch, roll, and yaw instead of

turn(forward/backward/right/left)
and
roll(left/right)?

This gets confusing when you are trying to teach physics concepts of the 6-degrees of freedom=3 lateral directions + 3 body rotations, and having to use Alice conventions.

Anybody else have the same problems?

Thanks.

Mick Chang
Reagan High School
Houston, Texas

DickBaldwin 02-13-2008 02:30 PM

[quote=MickChang;4625]Hello, can Alice 3.0 body rotation methods be renamed with engineering concepts of pitch, roll, and yaw instead of

turn(forward/backward/right/left)
and
roll(left/right)?

This gets confusing when you are trying to teach physics concepts of the 6-degrees of freedom=3 lateral directions + 3 body rotations, and having to use Alice conventions.

Anybody else have the same problems?

Thanks.

Mick Chang
Reagan High School
Houston, Texas[/quote]

As an engineer (turned programming professor), I completely agree that naming the methods roll, pitch, and yaw would be better.

In the meantime, as a workaround for Alice 2.0, I can't think of any reason why you couldn't simply write three wrapper methods named roll, pitch, and yaw and wrap them around the roll and turn methods. However, I haven't tried it, so there may be some problem that arises from passing an object as a parameter. Alice 2.0 can be peculiar in the area of parameter passing.

Dick Baldwin
Free Alice tutorials: [url]http://www.dickbaldwin.com/tocalice.htm[/url]
Free programming tutorials: [url]http://www.dickbaldwin.com/toc.htm[/url]


All times are GMT -5. The time now is 05:16 PM.

Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.