# Collisions#

Referencia

Panel:

Dinámicas ‣ Cuerpo rígido ‣ Colisiones

Forma

Determines the collision shape of the object; these can be broken into two categories: primitive shapes and mesh based shapes.

Primitive shapes (Box, Sphere, Capsule, Cylinder, and Cone) are best in terms of memory and performance but do not necessarily reflect the actual shape of the object. They are calculated based on the object’s bounding box. The center of gravity is always in the geometric center of the shape. Primitive shapes can be shown in the 3D Viewport by enabling Bounds.

Mesh based shapes (Convex Hull and Mesh) are calculated based on the geometry of the object so they are a better representation of the object. The center of gravity for these shapes is the object origin.

Caja:

Box-like shapes (e.g. cubes), including planes (e.g. ground planes). The size per axis is calculated from the bounding box.

Esfera:

Sphere-like shapes. The radius is the largest axis of the bounding box.

Cápsula:

This points up the Z axis.

Cilindro:

This points up the Z axis. The height is taken from the Z axis, while the radius is the larger of the X or Y axes.

Cono:

This points up the Z axis. The height is taken from the Z axis, while the radius is the larger of the X or Y axes.

Envolvente convexa:

A mesh-like surface encompassing (e.g. shrink-wrapped over) all vertices (best results with fewer vertices). A convex approximation of the object, which has good performance and stability.

Malla:

Mesh consisting of triangles only, allowing for more detailed interactions than convex hulls. Allows simulating concave objects, but is rather slow and unstable.

Combinar jerarquía:

Toma las formas de colisión de los subordinados del objeto y las combina. Esto hará posible crear formas cóncavas a partir de formas primitivas. Esto permite usualmente tener menores tiempos de simulación que al usar la propia Malla como forma de colisión, siendo a la vez generalmente más estable.

Origen

Origen de la malla usada para crear la forma de colisión.

Base:

La malla base del objeto.

Deformar:

Incluirá cualquier deformación agregada a la malla (p.ej: formas clave, modificadores de deformación, etc).

Final:

Incluirá todas las deformaciones y modificadores.

Deformable

La forma de las mallas podrá llegar a deformarse durante la simulación.

## Respuesta de la superficie#

Friction

Resistance of object to movement. Specifies how much velocity is lost when objects collide with each other.

Tendency of object to bounce after colliding with another (0 to 1) (rigid to perfectly elastic). Specifies how much objects can bounce after collisions.

The collision margin is used to improve the performance and stability of rigid bodies. Depending on the shape, it behaves differently: some shapes embed it, while others have a visible gap around them.

The margin is embedded for these shapes:

• Esfera

• Caja

• Cápsula

• Cilindro

• Convex Hull: Only allows for uniform scale when embedded.

The margin is not embedded for these shapes:

• Cono

• Active Triangle Mesh

• Passive Triangle Mesh: Can be set to 0 most of the time.

Margen

Threshold of distance near the surface where collisions are still considered (best results when nonzero).

## Colecciones#

Allows rigid body collisions allocate on different groups (maximum 20).