Difference between revisions of "Moving Objects Along Paths"
Line 1: | Line 1: | ||
=Waypoint= | =Waypoint= | ||
+ | '''Waypoint object''' - just create these using the Add menu. Place them in a row to create a path for objects to move along. | ||
+ | |||
Create these objects and place them in a zone and then tell any object to move to them be setting the appropriate properties of that object. ('''CurrentWaypointName''' and '''MovingToWaypoint'''.) | Create these objects and place them in a zone and then tell any object to move to them be setting the appropriate properties of that object. ('''CurrentWaypointName''' and '''MovingToWaypoint'''.) | ||
− | |||
− | |||
[[File:AddWaypont.png]] | [[File:AddWaypont.png]] | ||
Line 8: | Line 8: | ||
Using the PropertyEditor, change the '''Name''' of say 3 waypoints to be "A", "B:,"C" etc. Set '''Position''' and '''Rotation''' of those waypoints as appropriate. | Using the PropertyEditor, change the '''Name''' of say 3 waypoints to be "A", "B:,"C" etc. Set '''Position''' and '''Rotation''' of those waypoints as appropriate. | ||
− | '''CurrentWaypointName''' - text - destination waypoint of an object. Not used on a waypoint object that is in a fixed position. | + | '''CurrentWaypointName''' - text property of an object - destination waypoint of an object. Not used on a waypoint object that is in a fixed position. |
− | '''MovingToWaypoint''' - checkbox - enables/disables object movement towards the current waypoint. Not used on a waypoint object that is in a fixed position. | + | '''MovingToWaypoint''' - checkbox property of an object - enables/disables object movement towards the current waypoint. Not used on a waypoint object that is in a fixed position. |
− | '''NextWaypointNames''' - text - when an object gets to this waypoint, then it starts moving to the next waypoint, named here | + | '''NextWaypointNames''' - text property of a waypoint - when an object gets to this waypoint, then it starts moving to the next waypoint, named here |
'''PauseHereForSeconds''' - number - pause after getting to this waypoint | '''PauseHereForSeconds''' - number - pause after getting to this waypoint |
Revision as of 15:43, 11 May 2021
Waypoint
Waypoint object - just create these using the Add menu. Place them in a row to create a path for objects to move along.
Create these objects and place them in a zone and then tell any object to move to them be setting the appropriate properties of that object. (CurrentWaypointName and MovingToWaypoint.)
Using the PropertyEditor, change the Name of say 3 waypoints to be "A", "B:,"C" etc. Set Position and Rotation of those waypoints as appropriate.
CurrentWaypointName - text property of an object - destination waypoint of an object. Not used on a waypoint object that is in a fixed position.
MovingToWaypoint - checkbox property of an object - enables/disables object movement towards the current waypoint. Not used on a waypoint object that is in a fixed position.
NextWaypointNames - text property of a waypoint - when an object gets to this waypoint, then it starts moving to the next waypoint, named here
PauseHereForSeconds - number - pause after getting to this waypoint
There are options for time to reach the targeted position TimeToTranslate and time to reach target rotation TimeToRotate - these control how fast the go to that waypoint and how fast it will turn to the target orientation.
SmoothRotation - checkbox
SmoothVelocity - checkbox
TimeIntoWaypointMove - number (not sure if this is relevant on a waypoint object, or if it is for the object being moved?)
TimeToTranslate - number
TimeToRotate - number
The NextWaypointNames property controls which waypoint the object will go to after it reaches the current waypoint. You can easily make a loop by specifying the next waypoint as being the starting waypoint etc.
Moving objects using waypoints
PropertyEditor for a cube object
On all objects there is a MovingToWaypoint checkbox and a CurrentWaypointName field. Set those appropriately and it will move. They can also be controlled by wiring.
On the object you want to move towards a waypoint, set the CurrentWaypointName to the name of a waypoiint, for example "A". As soon as you check the MovingToWaypoint checkbox, the object will start moving towards the waypoint.
TimeIntoWaypointMove - number Does something...
WarpMarker
click on this and be transported there and reparented