Difference between revisions of "Land collision end"

From Second Life Wiki
Jump to navigation Jump to search
(changed "land collision" category to "collision", so users can find it better.)
m (Replaced old <LSL> block with <source lang="lsl2">)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{LSL_Event
{{Issues/SVC-3304}}{{LSL_Event
|event_id=10|event_delay|event=land_collision_end
|event_id=10|event_delay|event=land_collision_end
|p1_type=vector|p1_name=pos|p1_desc=position of last collision with the ground
|p1_type=vector|p1_name=pos|p1_desc=position of last collision with the ground
|event_desc=Triggered when task stops colliding with land
|event_desc=Triggered in the root when a physical object or attached avatar stops colliding with land
|constants
|constants
|spec
|spec
|caveats
|caveats
|examples
|examples=<source lang="lsl2">
default
{
    land_collision_start(vector pos)
    {
        llOwnerSay("Colliding with land.");
    }
    land_collision_end(vector pos)
    {
        llOwnerSay("Stopped colliding with land.");
    }
}
</source>
|helpers
|helpers
|also_header=*{{LSLGC|Collision|Collision events & functions}}
|also_header=
|also_events={{LSL DefineRow||[[land_collision_start]]|transition to starting land collision}}
*{{LSLGC|Collision|Collision events & functions}}
|also_functions={{LSL DefineRow||[[llGround]]|Gets the ground height}}
|also_events=
{{LSL DefineRow||[[land_collision_start]]|transition to starting land collision}}
{{LSL DefineRow||[[land_collision]]|}}
|also_functions=
{{LSL DefineRow||[[llGround]]|Gets the ground height}}
|also_articles
|also_articles
|also_footer
|also_footer
Line 16: Line 32:
|mode
|mode
|deprecated
|deprecated
|issues
|cat1=Collision
|cat1=Collision
|cat2=Ground
|cat2=Ground
|cat3
|cat3=Land Collision
|cat4
|cat4
|cat5
|cat5
|cat6
|cat6
}}
}}

Latest revision as of 00:25, 22 January 2015

Description

Event: land_collision_end( vector pos ){ ; }

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

• vector pos position of last collision with the ground

Caveats


Examples

default
{
    land_collision_start(vector pos)
    {
        llOwnerSay("Colliding with land.");
    }
    land_collision_end(vector pos)
    {
        llOwnerSay("Stopped colliding with land.");
    }
}

See Also

Events

•  land_collision_start transition to starting land collision
•  land_collision

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_end( vector pos );