move
Class: Aero.Body
Namespace: Aero
Change animation body position and orientation
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 body object
Aero.Body
object
Aerospace body object, specified as an Aero.Body
object.
translation
— Translation matrix
1-by-3 matrix
Translation matrix in the aerospace body x-y-z coordinate system, specified as a 1-by-3 matrix.
Example:
Data Types: double
rotation
— Body rotation
1-by-3 matrix
Body rotation, specified is a 1-by-3 matrix, in radians, that specifies the rotations 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
Change Animation Body Position
Change the animation body position to newpos
and newrot
.
h = Aero.Body; h.load('ac3d_xyzisrgb.ac','Ac3d'); newpos = h.Position + 1.00; newrot = h.Rotation + 0.01; h.move(newpos,newrot);
Version History
Introduced in R2007a
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
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)