ActorAttachmentPoint
R2026bDescription
The ActorAttachmentPoint object represents the spatial
relationship between a child actor and its parent in the RoadRunner scenario, such as the distance and orientation between a trailer and the truck
to which it is attached. When you attach a child actor to a parent actor, RoadRunner Scenario relocates the child actor so that its new position is relative to the parent
actor based on the connection attributes of the child actor. You can use the
ActorAttachmentPoint object properties to programmatically modify the
connection attributes of the corresponding child actor. For more information on connection
attributes, see Connection Attributes (RoadRunner Scenario).
Creation
To return the ActorAttachmentPoint object for a child actor in your
RoadRunner scenario, extract the InitialPoint property of an actor that
you have attached to a parent actor using the setActorInitialParent
function. For example, given the Scenario object scnro,
and that you have specified
setActorInitialParent(scnro,childActor,parentActor), you can create an
ActorAttachmentPoint object, childAttach, by
specifying childAttach = childActor.InitialPoint.
Properties
Examples
Version History
Introduced in R2026b
See Also
setActorInitialParent | addPoint | addActor | Vehicle | Point