Математика

Физика

Химия

Биология

Техника и    технологии

 

model Group

Represents a model that does not have a resource or any shaders.

A group is the most basic node, and is merely a point in space that is represented by a transform.You can assign children and parents to this node in order to group models, lights, cameras, orother groups.The most basic group is called a world, which is essentially synonymous with a 3D cast member.You can create a reference to a group by using the group property of the 3D Member object. Thegroup property gets the group at a specified index position in the list of groups.
In Lingo, you usethe group property directly from the 3D Member object to create a reference. In JavaScript syntax,you must use the getPropRef() method to create a reference.The following example creates a reference to the first group of the 3D cast member space, andassigns it to the variable myGroup.

-- Lingo syntax

myGroup = member("space").group[1]

// JavaScript syntax

var myGroup = member("space").getPropRef("group", 1);

Property summary for the Group object

Method summary for the Group object

name (3D)

addChild

parent

addToWorld

pointAtOrientation

clone

transform (property)

cloneDeep

userData

getWorldTransform()

worldPosition

isInWorld()

 

pointAt

 

registerScript()

 

removeFromWorld

 

rotate

 

scale (command)

 

translate

Назад

 

Hosted by uCoz