move
Class: Aero.Node
Namespace: Aero
Change node position and orientation versus time data
Syntax
move(h,translation,rotation)
Description
move(
sets a new position and orientation for the body object h
,translation
,rotation
)h
.
Input Arguments
h
— Aerospace Node object
Aero.Node
object
Aerospace node object, specified as an instance of the Aero.Node
class.
translation
— Translation matrix
1-by-3 matrix
Translation matrix, specified as a 1-by-3 matrix. translation
is defined in the aerospace body
x-y-z coordinate system or
another coordinate system.
If translation is defined in another coordinate system, you can use the CoordtransformFcn
function to move it to an aerospace body. The specified
aerospace body coordinate system is defined relative to the screen as x-left, y-in, z-down.
Data Types: double
rotation
— Node rotation
1-by-3 matrix
Node rotation, specified by a 1-by-3 matrix in radians. The rotation is specified as an Euler angle about the right-hand x-y-z coordinate axes. The order of application of the rotation is z-y-x (yaw, pitch, and roll (Y-P-R)).
Data Types: double
Examples
Move Lynx Body
Use the Simulink® 3D Animation™ vrnode/getfield
function to retrieve the translation and rotation. These coordinates are those used in the animation software.
h = Aero.VirtualRealityAnimation;
h.VRWorldFilename = 'asttkoff.wrl';
h.initialize();
newtrans = getfield(h.Nodes{2}.VRNode,'translation') - [0 40 6];
newrot = [0.4 0.3 0.1];
h.Nodes{2}.move(newtrans,newrot);
Version History
Introduced in R2007b
See Also
MATLAB Command
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)