Skip to content

PRIM TYPE SPHERE

Looking for the current API? Open the PRIM_TYPE_SPHERE reference →

Wiki description

PRIM_TYPE_SPHERE is a parameter of PRIM_TYPE used to make prim into a sphere and to change specific properties that define the shape of that sphere.

Usage

[ PRIM_TYPE, PRIM_TYPE_SPHERE, integer hole_shape, vector cut, float hollow, vector twist, vector dimple ]

PRIM_HOLE_DEFAULT integer hex=0x00 ihex=0 c=Default m=3
PRIM_HOLE_SQUARE integer hex=0x20 ihex=32 c=Square m=3
PRIM_HOLE_CIRCLE integer hex=0x10 ihex=16 c=Circle m=3
PRIM_HOLE_TRIANGLE integer hex=0x30 ihex=48 c=Triangle m=3
hole_shape Flags Shape hole_shape Flags Shape

[ 1, PRIM_TYPE_SPHERE, vector cut, float hollow, vector dimple ]

This is the old PRIM_TYPE format for the sphere (PRIM_TYPE used to be 1 instead of 9). Use the new format unless you are maintaining old code.

Examples

// this makes a simple sphere
vector cut = <0.0, 1.0, 0.0>;      // 0.0 to 1.0
float hollow = 0.0;                // 0.0 to 0.95
vector twist = <0.0, 0.0, 0.0>;    // -1.0 to 1.0
vector dimple = <0.0, 1.0, 0.0>;   // 0.0 to 1.0
llSetPrimitiveParams( [PRIM_TYPE, PRIM_TYPE_SPHERE, PRIM_HOLE_DEFAULT,
                        cut, hollow, twist, dimple ]  );

See also: constants

See also: functions

See also: events

Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.