Move the 3D model on the X, Y or Z axis.

syntaxSyntax:
FWiz3DModel.Move(dX, dY, dZ)

Parameters

Parameter Description
dX Displacement in the X direction.
dY Displacement in the Y direction.
dZ Displacement in the Z direction.

Return Value

If an error occurs it returns false otherwise it returns true.

Example

  Copy codeCopy code
function OnBuild3DModel()
{
  var ctx = FWiz.Get3DModelCtx();
  var style = FWiz.Get3DStyle(0);
  style.SetStyle("gold");
  var cube1 = new DlxCube(10, 10, 10, style);
  cube1.Move(0, 0, 10);
  ctx.Add(cube1);
  var cube2 = new DlxCube(10, 10, 10, style);
  cube2.Move(0, 0, -10);
  ctx.Add(cube2);
  ctx.Move(10, 0, 0);
}

See also