This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Class: Aero.Animation
Package: Aero

Add loaded body to animation object and generate its patches


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


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.

Input Arguments

hAnimation object.
bLoaded body.

Output Arguments

idxIndex of the body to be added.


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('','Ac3d');
b = h.Bodies{1};
idx2 = h.addBody(b);
Was this topic helpful?