llSetCOG
Jump to navigation
Jump to search
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
LSL Feature Request | |
The described function does not exist. This article is a feature request. |
Summary
Function: llSetCOG( vector cog, integer local );REQUEST | Function ID |
Forced Delay | |
Energy |
Overrides the automatic, volume based, computation of the prim's center of gravity. All rotations will instead be made around the given point. This includes llSetRot, llSetLocalRot, llTargetOmega as well as physics evaluation. In addition, the handles in edit mode will be positioned at the specified point.
If the function is called in a child prim of a link set, nothing happens and the given COG position is ignored.
• vector | cog | – | position of the prim's center of gravity | |
• integer | local | – | boolean, if TRUE the cog is interpreted as an offset from the geometrical center of the prim along the axis of the local coordinate system, if FALSE the cog is interreted in the region coordinate system. |
Caveats
Examples
Notes
A way to reset the COG back to the automatic computation might be useful as well.