Steering Arrive
Updated
Go to a target and slow down to stop on it.
- Type
comp-steering-arrive- Script class
SteeringArriveComponent- Per entity
- Several
- Version
- 1.0.0
Read about it in Steering: what it does, how to use it from a script, and examples.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
distance |
0 ≤ x ≤ 1000 |
|
slowRadius |
0 ≤ x ≤ 100 |
|
weight |
0 ≤ x ≤ 10 |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
Seek or arriveSix agents chase a beacon that jumps every five seconds: three with a Steering Seek rush at full speed, three with a Steering Arrive slow down within 3 m and report each stop.
Watch the blue seekers overshoot and brake hard while the green arrivers ease in; the label counts the Arrive stops. Drag to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(SteeringArriveComponent); if (component) log(component.props);}