Difference between revisions of "LlPushObject"

From Second Life Wiki
Jump to navigation Jump to search
m (typo (aount = amount))
Line 12: Line 12:
|caveats=*Only works on land where Push is not restricted or where the script is owned by the land owner.
|caveats=*Only works on land where Push is not restricted or where the script is owned by the land owner.
**If the land is owned by a group, the scripted object must be deeded to the same group.
**If the land is owned by a group, the scripted object must be deeded to the same group.
*The effectiveness of Push is modulated by the aount of [[ScriptEnergy|script energy]] available.  There is a [[LlPushObject/Havok4Implementation|simplified code snippet]] describing how Push is implemented in the Havok4 project and reveals some of the details of how the energy budget affects the final Push magnitude.
*The effectiveness of Push is modulated by the amount of [[ScriptEnergy|script energy]] available.  There is a [[LlPushObject/Havok4Implementation|simplified code snippet]] describing how Push is implemented in the Havok4 project and reveals some of the details of how the energy budget affects the final Push magnitude.
|constants
|constants
|examples
|examples

Revision as of 06:01, 6 February 2008

Summary

Function: llPushObject( key target, vector impulse, vector ang_impulse, integer <span title="boolean, if TRUE uses the local axis of target, if FALSE uses the region axis." style="border-bottom:1px dotted; cursor:help;">local );
0.0 Forced Delay
10.0 Energy

Applies impulse and ang_impulse to object id

• key target Avatar or object UUID in the sim
• vector impulse
• vector ang_impulse angular impulse
• integer local boolean, if TRUE uses the local axis of target, if FALSE uses the region axis.

Caveats

  • Only works on land where Push is not restricted or where the script is owned by the land owner.
    • If the land is owned by a group, the scripted object must be deeded to the same group.
  • The effectiveness of Push is modulated by the amount of script energy available. There is a simplified code snippet describing how Push is implemented in the Havok4 project and reveals some of the details of how the energy budget affects the final Push magnitude.

Examples

Deep Notes

Signature

function void llPushObject( key target, vector impulse, vector ang_impulse, integer local );