- 最后登录
- 2024-6-3
- 注册时间
- 2009-10-16
- 阅读权限
- 100
- 积分
- 18803
- 纳金币
- 17488
- 精华
- 1
|
Fly (Special Effects Behavior)
Summary
Fly the object around the scene, using the arrow keys.
Category
Latest Behaviors
Author
Gavin Kistner
Difficulty
(Reference)
Time to Complete
5 Minutes
Downloads
Click Here
to download the associated files.
(This document covers version 2.0.1 of the 'Fly' behavior, current as of 2005-Feb-11)
Description
Attach this behavior to an object to control its movement with the keyboard. (Typically attached to a Camera to allow the user to ‘fly’ around in the scene.)
This new version allows you to control forward/backward movement, left/right turning, left/right sliding (‘strafing’), and up/down sliding.
If
Stop Without Gas?
is checked, the object will immediately stop moving as soon as any of the movement keys are released.
If
Slow Without Gas?
is checked, the object will slow to a stop (using the
Acceleration
value to slow down) when the movement keys are released. (Provides a natural feeling of inertia.)
If neither of the above are checked, the object will continue moving and sliding until the
Stop Key
(slows to a stop) or
Full Stop Key
(immediately stop all movement) are pressed.
If
Move in XZ plane only?
is checked, the movement will be constrained to the ‘horizontal’ plane. This allows you to have the camera point down (someone looking down) without having the
Forward Key
move the camera along that path. If not checked, the object will always move ‘forward’ in the direction it is ‘looking’.
See ‘Appendix C: Key Names’ for a full listing of strings which may be used for each of the key mappings (in advanced properties).
This behavior does not modify pitch or roll, but may be used in conjunction with another behavior (such as Tumble or Mouse-Controlled Incrementor) to affect these values.
This behavior is commonly used in conjunction with Collider for Walkthroughs to allow the user to move through a scene without walking through walls.
Basic Properties
Stop Without Gas?
Stop immediately when the forward/backwards key is released?
Slow Without Gas?
Slow to a stop when the forward/backwards key is released?
Move in XZ plane only?
If checked, you can move 'forward' while looking down.
Acceleration
Forward/backward acceleration speed (in units/second^2)
Max Speed
Maximum speed (in units/second) for the object.
Turn Speed
Speed (in degrees/second) to rotate.
Advanced Properties
Forward Key
Key to control acceleration.
Backward Key
Key to control backwards acceleration.
Turn Left Key
Key to turn left.
Turn Right Key
Key to turn right.
Slide Left Key
Key to slide to the left.
Slide Right Key
Key to slide to the right.
Slide Up Key
Key to slide up.
Slide Down Key
Key to slide down.
Stop Key
Key to slow to a stop. (Only if 'Stop Without Gas?' is off.)
Full Stop Key
Key to immediately stop movement. (Only if 'Stop Without Gas?' is off.)
Actions
Stop Moving Now
Equivalent to pressing the Full Stop Key.
Demonstration
View Demonstration Project
Download Project File
|
|