LlSetCOG

From Second Life Wiki

Second Life Wiki > LlSetCOG
Jump to: navigation, search

Template:Needs Translation/LSL/de Template:Needs Translation/LSL/es Template:Needs Translation/LSL/el Template:Needs Translation/LSL/fr Template:Needs Translation/LSL/he Template:Needs Translation/LSL/it Template:Needs Translation/LSL/ja Template:Needs Translation/LSL/ko Template:Needs Translation/LSL/nl Template:Needs Translation/LSL/hu Template:Needs Translation/LSL/no Template:Needs Translation/LSL/da Template:Needs Translation/LSL/sv Template:Needs Translation/LSL/tr Template:Needs Translation/LSL/pl Template:Needs Translation/LSL/pt Template:Needs Translation/LSL/ru Template:Needs Translation/LSL/uk Template:Needs Translation/LSL/zh-Hans Template:Needs Translation/LSL/zh-Hant

Image:Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Contents

Summary

Function: llSetCOG( vector cog, integer local );

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.

• vector cog position of the prim's center of gravity
• integer local boolean, if TRUE cog is relative to the local coordinate system, if FALSE cog is relative to the parent coordinate system. If the prim is a single prim or the root prim in a linked set, that means the region coordinate system.

Caveats

Expression error: Unexpected > operator((TODO: Why is there an error here?)) Search JIRA for related Bugs

Examples

Notes

A way to reset the COG back to the automatic computation might be useful as well.

Deep Notes

In other languages