What's New in Director 8.5 > Working with Models and Model Resources > Primitives > Sphere properties

 

Sphere properties

Spheres created at run time aren't saved with the cast member's media when the Director movie is saved. Their type is #sphere. Their surface is generated by sweeping a two-dimensional semicircle arc in the XY plane from startAngle to endAngle in the Y axis. If startAngle = 0.0 and endAngle= 360.0, a full sphere is generated. If startAngle = 180.0 and endAngle = 360.0, a half sphere is generated. These properties can be modified or animated at run time.

Property

Access

Description

Value Range

radius

Get and set

Radius of the sphere.

Positive floating-point value. The default is 25.0.

resolution

Get and set

Controls the number of polygons used in the creation of the sphere surface. The higher the value, the smoother the surface.

An integer value of 1 or greater. The default is 20.

startAngle

Get and set

Starting angle of the sweep.

Floating-point value of from 0.0 to 360.0. The default is 0.0.

endAngle

Get and set

Ending angle of the sweep.

Floating-point value of from 0.0 to 360.0. The default is 360.0.