Difference between revisions of "Physical"

From Second Life Wiki
Jump to navigation Jump to search
(moved Physical to Physical (project page): It's a stub, usurping article name so it can be in Help or LSL portals.)
 
(I will not answer what gravity is.)
 
Line 1: Line 1:
#REDIRECT [[Physical (project page)]]
{{Help}}{{Otheruses4‎|the [[object]] attribute 'physical'|To learn about the physics|Physics engine|[[LSL]] content on physics and physical|:Category:LSL Physics}}
== General ==
 
All objects interact with the physics engine to a certain extent. All objects have mass and volume both of which have implications for scripting, even attachments.
 
Objects which are 'Physical' are those that have opted into having the physics engine update their position and rotation. Objects that are non-physical will not have their positions and rotations updated by the physics engine. This means that 'Physical' objects will experience gravity and can be pushed around while non-physical objects will just float in midair.
 
There is a [[limit]] on object complexity. Objects which have a [[Mesh/Mesh_physics#Physics_Resource_Cost|physics cost]] greater than 32 cannot have physical enabled.
 
There are some interesting combining of 'physical' with object attributes:
 
* [[Phantom]] objects will not collide nor rebound with other objects or avatars but will collide and rebound with the ground.
* [[llVolumeDetect|Volume detect]] (a scripting feature) is like phantom except that it won't collide with the ground. If an avatar or physical object interpenetrates the object the objects scripts will be notified (unless it is another volume detect object).
 
== Tips ==
 
* Don't enable physics on your object unless you are prepared for it to immediately fall to the ground.
* Physical objects have momentum, when you drag them around, you maybe imparting momentum on the object.
* When scripting physical objects you may want to consider using [[STATUS_SANDBOX]] to keep the object from escaping.
* Strange things happen when physical objects interpenetrate.
** Do not make chains, the results will be less than satisfactory.
 
== Scripting ==
 
See: [[:Category:LSL Physics]]

Latest revision as of 17:49, 21 December 2013

This article is about the object attribute 'physical'. For To learn about the physics, see Physics engine. For LSL content on physics and physical, see Category:LSL Physics.

General

All objects interact with the physics engine to a certain extent. All objects have mass and volume both of which have implications for scripting, even attachments.

Objects which are 'Physical' are those that have opted into having the physics engine update their position and rotation. Objects that are non-physical will not have their positions and rotations updated by the physics engine. This means that 'Physical' objects will experience gravity and can be pushed around while non-physical objects will just float in midair.

There is a limit on object complexity. Objects which have a physics cost greater than 32 cannot have physical enabled.

There are some interesting combining of 'physical' with object attributes:

  • Phantom objects will not collide nor rebound with other objects or avatars but will collide and rebound with the ground.
  • Volume detect (a scripting feature) is like phantom except that it won't collide with the ground. If an avatar or physical object interpenetrates the object the objects scripts will be notified (unless it is another volume detect object).

Tips

  • Don't enable physics on your object unless you are prepared for it to immediately fall to the ground.
  • Physical objects have momentum, when you drag them around, you maybe imparting momentum on the object.
  • When scripting physical objects you may want to consider using STATUS_SANDBOX to keep the object from escaping.
  • Strange things happen when physical objects interpenetrate.
    • Do not make chains, the results will be less than satisfactory.

Scripting

See: Category:LSL Physics