setActorWorldAnglesDegrees
R2026bSpecify Euler angle heading, pitch, and roll values of vehicle actor at specified point
Since R2026b
Description
setActorWorldAnglesDegrees(
specifies the Euler angle heading, pitch, and roll orientation values of a vehicle actor
when it reaches the specified point,heading,pitch,roll)point on its route. RoadRunner applies the actor Euler angles in this intrinsic order relative to the
RoadRunner world space axes: heading, pitch, and then roll. This function also sets the
HasActorOrientation property of point to
true.
Note
When you must specify values for multiple orientation angles at a point, the
setActorWorldAnglesDegrees function calculates a more accurate
actor orientation, than if you manually specify the individual
ActorWorldHeadingDegrees,
ActorWorldPitchDegrees, and
ActorWorldRollDegrees properties of the corresponding
Point object.
When you specify orientation data for a Point object, RoadRunner automatically updates the associated vehicle actor to interpolate its
orientation between that point and other points with orientation data. If the last point
with orientation data is not the final point on the route, then all points after it inherit
its orientation values. For more information on modifying actor orientation in RoadRunner, see Actor Orientation
Tool (RoadRunner Scenario).
Examples
Input Arguments
Limitations
Among actors that follow routes, RoadRunner supports orientation data for only vehicle actors.
Version History
Introduced in R2026b
See Also
addPoint | anchorToPoint | Point | Route | RouteSegment
Topics
- Actor Orientation Tool (RoadRunner Scenario)
- Path Editing (RoadRunner Scenario)