IgeEntity

Method: bounds3d

Gets / sets the 3d geometry of the entity. The x and y values are relative to the center of the entity and the z value is wholly positive from the "floor". Used to define a 3d bounding cuboid for the entity used in isometric depth sorting and hit testing.
bounds3d (Number x, Number y, Number z)
  • Numberx The new x value in pixels.
  • Numbery The new y value in pixels.
  • Numberz The new z value in pixels.
Returns * "this" when arguments are passed to allow method chaining or the current value if no arguments are specified.

Set the dimensions of the entity (width, height and length)

entity.bounds3d(40, 40, 20);
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point