Difference between revisions of "Land collision start"

From Second Life Wiki
Jump to navigation Jump to search
m (Replaced old <LSL> block with <source lang="lsl2">)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{LSL_Event/ja
{{Issues/SVC-3304}}{{LSL_Event
|event_id=8
|event_id=8
|event_delay
|event_delay
Line 5: Line 5:
|p1_type=vector
|p1_type=vector
|p1_name=pos
|p1_name=pos
|p1_desc=地面とコリジョンする位置
|p1_desc=position of collision with the ground
|event_desc=タスクが土地とコリジョンするのを開始する時に作動します。
|event_desc=Triggered in the root when a physical object or attached avatar starts colliding with land
|constants
|constants
|spec
|spec
|caveats
|caveats
|examples
|examples=<source lang="lsl2">//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);
    }
}</source>
|helpers
|helpers
|also_header=*{{LSLGC/ja|Collision|コリジョンイベントと関数}}
|also_header=
|also_events
*{{LSLGC|Collision|Collision events & functions}}
|also_functions={{LSL DefineRow||[[llGround/ja|llGround]]|標高を取得する}}
|also_events=
{{LSL DefineRow||[[land_collision]]|}}
{{LSL DefineRow||[[land_collision_end]]|}}
|also_functions=
{{LSL DefineRow||[[llGround]]|Gets the ground height}}
|also_articles
|also_articles
|also_footer
|also_footer
Line 20: Line 31:
|mode
|mode
|deprecated
|deprecated
|cat1=Collision/ja
|issues
|cat2=Ground/ja
|cat1=Collision
|cat3
|cat2=Ground
|cat3=Land Collision
|cat4
|cat4
|cat5
|cat5
|cat6
|cat6
}}
}}

Latest revision as of 01: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

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 );