Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

CollisionModule

struct in UnityEngine

Sugiere un cambio

¡Éxito!

Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.

Cerrar

No se puedo enviar

Por alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.

Cerrar

Cancelar

Cambiar al Manual

Descripción

Script interface for the Collision module.

Variables

bounceHow much force is applied to each particle after a collision.
collidesWithControl which layers this particle system collides with.
dampenHow much speed is lost from each particle after a collision.
enabledEnable/disable the Collision module.
enableDynamicCollidersAllow particles to collide with dynamic colliders when using world collision mode.
enableInteriorCollisionsAllow particles to collide when inside colliders.
lifetimeLossHow much a particle's lifetime is reduced after a collision.
maxCollisionShapesThe maximum number of collision shapes that will be considered for particle collisions. Excess shapes will be ignored. Terrains take priority.
maxPlaneCountThe maximum number of planes it is possible to set as colliders.
minKillSpeedKill particles whose speed falls below this threshold, after a collision.
modeChoose between 2D and 3D world collisions.
qualitySpecifies the accuracy of particle collisions against colliders in the scene.
radiusScaleA multiplier applied to the size of each particle before collisions are processed.
sendCollisionMessagesSend collision callback messages.
typeThe type of particle collision to perform.
voxelSizeSize of voxels in the collision cache.

Funciones Públicas

GetPlaneGet a collision plane associated with this particle system.
SetPlaneSet a collision plane to be used with this particle system.