Difference between revisions of "Land collision"

From Second Life Wiki
Jump to navigation Jump to search
m
m (Replaced <source> with <syntaxhighlight>)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{LSL_Event
{{Issues/SVC-3304}}{{LSL_Event
|event_id=9
|event_id=9
|event_delay
|event_delay
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 when task is colliding with land
|event_desc=Triggered in the root when physical object or attached avatar is colliding with land
|constants
|constants
|spec
|spec
|caveats
|caveats
|examples=<lsl>//Will die on collision with land.
|examples=<syntaxhighlight lang="lsl2">//Will die on collision with land.
default
default
{
{
Line 17: Line 17:
           llDie();
           llDie();
     }
     }
}</lsl>
}</syntaxhighlight>
|helpers
|helpers
|also_header=*{{LSLGC|Collision|Collision events & functions}}
|also_header=
|also_events
*{{LSLGC|Collision|Collision events & functions}}
|also_functions={{LSL DefineRow||[[llGround]]|Gets the ground height}}
|also_events=
{{LSL DefineRow||[[land_collision_start]]|}}
{{LSL DefineRow||[[land_collision_end]]|}}
|also_functions=
{{LSL DefineRow||[[llGround]]|Gets the ground height}}
|also_articles
|also_articles
|also_footer
|also_footer
Line 27: Line 31:
|mode
|mode
|deprecated
|deprecated
|issues=
|issues
{{Issue|SVC-3304|presence of [[collision]] event influences [[land_collision]] event|type=bug}}
|cat1=Collision
|cat1=Collision
|cat2=Ground
|cat2=Ground
|cat3
|cat3=Land Collision
|cat4
|cat4
|cat5
|cat5
|cat6
|cat6
}}
}}

Latest revision as of 07:47, 12 October 2023

Description

Event: land_collision( vector pos ){ ; }

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

• vector pos position of collision with the ground

Caveats


Examples

//Will die on collision with land.
default
{
     land_collision(vector pos)
     {
          llDie();
     }
}

See Also

Events

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