Skip to content

PRIM_SIZE

constant
Constant
integer PRIM_SIZE = 7;
Set with llSetLinkPrimitiveParamsFast
PRIM_SIZE, vector size
Get with llGetLinkPrimitiveParams, llGetPrimitiveParams
PRIM_SIZE → vector size

Prim parameter [PRIM_SIZE, vector size] to get or set the prim's physical dimensions (equivalent to llGetScale/llSetScale).

Other PrimParam values (42)
Other PrimParamGet values (40)

Returns or sets the prim’s size.

PRIM_SIZE, vector size
  • vector size — ranges from 0.01 to 64.0 for x, y and z1

When used with llSetLinkPrimitiveParamsFast

llGetLinkPrimitiveParams(LINK_THIS, [ PRIM_SIZE ]);

Returns the same values, in the same order.

Example 1
//Changing the prim size and rotation
default
{
touch_start(integer total_number)
{
llSetLinkPrimitiveParamsFast(LINK_THIS, [
PRIM_SIZE, <0.25,0.5,1.0>,
PRIM_ROTATION, <1.0, 0.0, 0.0, 0.0>
]);
}
}
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.

  1. Viewer 746d768339: llmath/xform.h:35; llmath/xform.h:37; newview/llmanipscale.cpp:1221 ↩