Difference between revisions of "Land collision start"

From Second Life Wiki
Jump to navigation Jump to search
m (clarified description)
m (Replaced old <LSL> block with <source lang="lsl2">)
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
|p1_name=pos
|p1_name=pos
|p1_desc=position of collision with the ground
|p1_desc=position of collision with the ground
|event_desc=Triggered in the root when object or attached avatar starts colliding with land
|event_desc=Triggered in the root when a physical object or attached avatar starts colliding with land
|constants
|constants
|spec
|spec
|caveats
|caveats
|examples=<lsl>//Put script into physical object and drop to ground.  It will say position of initial impact.
|examples=<source lang="lsl2">//Put script into physical object and drop to ground.  It will say position of initial impact.
default
default
{
{
Line 17: Line 17:
       llOwnerSay("Land collision at: "+(string) pos.x + ","+(string) pos.y+","+(string)pos.z);
       llOwnerSay("Land collision at: "+(string) pos.x + ","+(string) pos.y+","+(string)pos.z);
     }
     }
}</lsl>
}</source>
|helpers
|helpers
|also_header=
|also_header=

Latest revision as of 00:25, 22 January 2015

Description

Event: land_collision_start( vector pos ){ ; }

Triggered in the root when a physical object or attached avatar starts colliding with land

• vector pos position of collision with the ground

Caveats


Examples

//Put script into physical object and drop to ground.  It will say position of initial impact.
default
{
     land_collision_start( vector pos )
    {
       llOwnerSay("Land collision at: "+(string) pos.x + ","+(string) pos.y+","+(string)pos.z);
    }
}

See Also

Events

•  land_collision
•  land_collision_end

Functions

•  llGround Gets the ground height

Deep Notes

Issues

All Issues

~ Search JIRA for related Issues
   presence of collision* events influencing land_collision* events

Signature

event void land_collision_start( vector pos );