Don't click here unless you want to be banned.

LSL Wiki : penetrate

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl338.us.archive.org

penetrate

SL penetration, or interpenetration as written in an error, is when something (prim, object, avatar) intersects another prim/object/avatar or the ground. Penetration will usually stop physical objects from staying physical and give an error.

One way to force a prim/object to remain physical at all times (depending on timer interval):

default
{
    state_entry()
    {
        llSetTimerEvent(1); // generate a timer event every 1 second
    }
    
    timer()
    {
        llSetStatus(STATUS_PHYSICS,TRUE); // set physical status every 1 second
    }
}

Another way is to use a collision event:

default
{
    collision()
    {
        llSetStatus(STATUS_PHYSICS,TRUE); // set physical status whenever object collides
    }
}


physical | errors
There is no comment on this page. [Display comments/form]