Add-On Required: This feature requires the 3D Scenarios add-on.
translate(actr,offset)
moves the actor by the specified offset in the body frame of the actor. To translate an
actor, the Behavior property of the actor must be empty and the
SimulationStatus property of the associated Scenario
object must be "notstarted".
Actor, specified as an m-by-1 vector of Actor objects,
where m is the number of actors.
Position offset, in meters, specified as one of these options:
An m-by-2 matrix. Each row of the matrix specifies the
xy-coordinates of the offset in the body frame of the
actor.
An m-by-3 matrix. Each row of the matrix specifies the
xyz-coordinates of the offset in the body frame of the
actor.
If the matrix has one row, then the offset applies to all the actors. If the matrix
has multiple rows, then the number of rows must match the number of actors.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.