Difference between revisions of "Moving Objects Along Paths"

From Constructive Labs
Jump to navigation Jump to search
Line 2: Line 2:
 
make these and then tell any object to move to them using the appropriate properties
 
make these and then tell any object to move to them using the appropriate properties
  
−
'''Waypoint object''' - just create these using the Add menu.   
+
'''Waypoint object''' - just create these using the Add menu.  Place them in a row to create a path for objects to move along.
  
 
[[File:AddWaypont.png]]
 
[[File:AddWaypont.png]]

Revision as of 16:32, 11 May 2021

Waypoint

make these and then tell any object to move to them using the appropriate properties

Waypoint object - just create these using the Add menu. Place them in a row to create a path for objects to move along.

AddWaypont.png

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

MovingToWaypoint - checkbox - enables object movement

NextWaypointNames - text

PauseHereForSeconds - number


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

WaypointProps1.png

WaypointProps2.png

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

CubeProps1.png

CubeProps2.png

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