User Guide
796 Chapter 14: Properties
This statement sets the height of sprite 10 to 26 pixels:
-- Lingo syntax
sprite(10).height = 26
// JavaScript syntax
sprite(10).height = 26;
See also
Member, Sprite, width
height (3D)
Usage
member(whichCastmember).modelResource(whichModelResource).height
member(whichCastmember).texture(whichTexture).height
Description
3D #box model resource, #cylinder model resource, and texture property; indicates the height
of the object.
The height of a
#box or #cylinder model resource is measured in world units and can be tested
and set. The default value for this property is 50.
The height of a texture is measured in pixels and can be tested but not set. The height of the
texture is rounded from the height of the source of the texture to the nearest power of 2.
Example
This statement sets the height of the model resource named Tower to 225.0 world units:
member("3D World").modelResource("Tower").height = 225.0
This statement shows that the height of the texture named Marsmap is 512 pixels.
put member("scene").texture("Marsmap").height
-- 512
See also
length (3D), width (3D)
heightVertices
Usage
member(whichCastmember).modelResource(whichModelResource).\
heightVertices
Description
3D #box model resource property; indicates the number of mesh vertices along the height of the
box. Increasing this value increases the number of faces, and therefore the fineness, of the mesh.
The height of a box is measured along its Y axis.
Set the
renderStyle property of a model’s shader to #wire to see the faces of the mesh of the
model’s resource. Set the
renderStyle property to #point to see just the vertices of the mesh.
The value of this property must be greater than or equal to 2. The default value is 4.