Steering Interpose
Updated
Get between two targets, like a bodyguard.
- Type
comp-steering-interpose- Script class
SteeringInterposeComponent- 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 |
|---|---|---|
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
A bodyguard that keeps betweenAn amber bodyguard with a Steering Interpose keeps itself between a wandering VIP and the threat that seeks it, and a label shows how close it is to the line between them.
Watch the amber bodyguard slide into place between the violet VIP and the blue threat, and follow them as they move. 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(SteeringInterposeComponent); if (component) log(component.props);}