246
edits
Icecream17 (talk | contribs) (→Behavior: expand) |
Icecream17 (talk | contribs) (→Behavior: clarify) |
||
Line 37: | Line 37: | ||
### Set action state to 1 | ### Set action state to 1 | ||
# Call '''<code>update_flying</code>''' | # Call '''<code>update_flying</code>''' | ||
# switch [[Movement_steps#Perform_Air_Step]]: (Note: | # switch [[Movement_steps#Perform_Air_Step]]: (Note: if there are no floor/wall/ceiling/oob interactions this just '''adds vel[0,1,2] to pos[0,1,2]'''.) | ||
#* air step none: | #* air step none: | ||
#*# Update graphics (camera) angle to be behind Mario | #*# Update graphics (camera) angle to be behind Mario | ||
Line 99: | Line 99: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Key takeaways: | Key takeaways: | ||
* Pitching to move up happens faster with lower forward velocity. Try to be just under 4 or 16 forward velocity. | * Pitching to move up happens faster with lower forward velocity. Try to be just under 4 or 16 forward velocity. | ||
{| class="wikitable" | {| class="wikitable" | ||
|+forwardVel's affect in pitch | |+forwardVel's affect in pitch | ||
Line 146: | Line 144: | ||
|6 | |6 | ||
|} | |} | ||
* However, the pitch is capped to within +- 0x2AAA (in decimal: 10922) | * However, the pitch is capped to within +- 0x2AAA (in decimal: 10922) | ||
* '''TODO:''' I heard moving down then up can be faster then just the direct line. Explain big picture movements, what happens in a practical example. | * '''TODO:''' I heard moving down then up can be faster then just the direct line. Explain big picture movements, what happens in a practical example. | ||
* In summary: | * In summary: | ||
# Joystick inputs affect (pitch,yaw) velocity. | # Joystick inputs affect (pitch,yaw) velocity. | ||
# Yaw velocity affects yaw, roll, and forward velocity. | # Yaw velocity affects yaw, roll, and forward velocity. | ||
Line 157: | Line 153: | ||
# Pitch velocity affects pitch. | # Pitch velocity affects pitch. | ||
# x,y,z velocity is more or less directly exactly correspondent to forward velocity, pitch, and yaw. | # x,y,z velocity is more or less directly exactly correspondent to forward velocity, pitch, and yaw. | ||
<hr> | <hr> | ||
Here are some tables summarizing the <code>approach_s32</code>, <code>update_flying_pitch</code>, and <code>update_flying_yaw</code> functions. | Here are some tables summarizing the <code>approach_s32</code>, <code>update_flying_pitch</code>, and <code>update_flying_yaw</code> functions. | ||
{| class="wikitable" | {| class="wikitable" |
edits