Holomatix

Log In / Register


Purchase
SceneObject.matrix

Usage

mySceneObject.matrix: Matrix3d

Description

Specifies the position of this scene object in relation to its parent. A Matrix3d is a 4x3 matrix, the components of which determine the translations and rotations which move it from its parent. See the Matrix3d class for more information.

Example

This example sets the matrix of the bishop scene object to a new matrix which will move it 2 units in x and 1 unit in z and leave its rotation the same as its parent:

_root.movie3d.bishop.matrix = new Matrix3d(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 1);
 
< Prev   Next >


© Copyright 2000-2011 Holomatix Ltd. All rights reserved.