# PRIM_PHYSICS_SHAPE_TYPE

*LSL constant*

```lsl
integer PRIM_PHYSICS_SHAPE_TYPE = 30;
```

Prim parameter used to get or set the type of shape the physics engine uses for the prim (PRIM_PHYSICS_SHAPE_NONE, _PRIM, or _CONVEX). Mainly used for physics optimization.

Constant groups: [PrimParam](/constants/groups/PrimParam/), [PrimParamGet](/constants/groups/PrimParamGet/)

Used to set the type of shape the physics engine should use for the prim. This is primarily used to do [Physics Optimization](https://wiki.secondlife.com/wiki/Physics_Optimization).

## Notes

Modern physics engines achieve real-time results (as opposed to slower than real-time results) by approximating and simplifying the shapes. This means the shape that client displays on the screen is much more complicated than the shape the physics engine works with (with the exception of basic shapes like cubes or prisms). This flag gives the scripter some control over how the prim is treated by the physics engine.

## History

- Introduced in [Second Life RC LeTigre 11.09.09.240509](https://wiki.secondlife.com/wiki/Release_Notes/Second_Life_RC_LeTigre/11#11-09-09-240509), September 9, 2011
- [SLUniverse:Future physics functions tease](http://www.sluniverse.com/php/vb/scripting/61203-future-physics-functions-tease.html#post1305775)

## See also

### Functions

- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)
- [llGetLinkPrimitiveParams](/functions/llGetLinkPrimitiveParams/)
- [llSetLinkPrimitiveParamsFast](/functions/llSetLinkPrimitiveParamsFast/)

### Articles

- [Physics Optimization](https://wiki.secondlife.com/wiki/Physics_Optimization)
- [Best practices for creating efficient collision volumes](http://community.secondlife.com/t5/English-Knowledge-Base/Best-practices-for-creating-efficient-collision-volumes/ta-p/984115) — A really good article that explains how collisions work.

---

*Source: [PRIM PHYSICS SHAPE TYPE](https://wiki.secondlife.com/wiki/PRIM_PHYSICS_SHAPE_TYPE) on the Second Life Wiki. Content from the Second Life Wiki article PRIM PHYSICS SHAPE TYPE (revision 1185812, 2013-12-27), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/PRIM_PHYSICS_SHAPE_TYPE/
