Products & Services Solutions Academia Support User Community Company

Learn more about Aerospace Toolbox   

addBody - Class: Aero.Animation
Package: Aero

Add loaded body to animation object and generate its patches

Syntax

idx = addBody(h,b)
idx = h.addBody(b)

Description

idx = addBody(h,b) and idx = h.addBody(b) add a loaded body, b, to the animation object h and generates its patches. idx is the index of the body to be added.

Inputs

hAnimation object.
bLoaded body.

Outputs

idxIndex of the body to be added.

Examples

Add a second body to the list that is a pointer to the first body. This means that if you change the properties of one body, the properties of the other body change correspondingly.

h = Aero.Animation;
idx1 = h.createBody('pa24-250_orange.ac','Ac3d');
b = h.Bodies{1};
idx2 = h.addBody(b);
  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS