A Collider that can merge other Colliders together.
A CompositeCollider2D merges other Colliders together when their Collider2D.usedByComposite is set to true.
When a Collider is used by a Composite Collider, the Editor will ignore and not show the Collider2D.sharedMaterial, Collider2D.isTrigger & Collider2D.usedByComposite properties. The same properties on the CompositeCollider2D will be used instead. You should set these properties on the Composite Collider instead to merge all Colliders into the Composite Collider.
Composite Colliders can only merge BoxCollider2D and PolygonCollider2D.
edgeRadius | Controls the radius of all edges created by the Collider. |
generationType | Specifies when to generate the Composite Collider geometry. |
geometryType | Specifies the type of geometry the Composite Collider should generate. |
offsetDistance | Vertices are offset by this distance when compositing multiple physic shapes. Any vertices between shapes within this distance are combined. |
pathCount | The number of paths in the Collider. |
pointCount | Gets the total number of points in all the paths within the Collider. |
vertexDistance | Controls the minimum distance allowed between generated vertices. |
GenerateGeometry | Regenerates the Composite Collider geometry. |
GetPath | Gets a path from the Collider by its index. |
GetPathPointCount | Gets the number of points in the specified path from the Collider by its index. |
enabled | Enabled Behaviours are Updated, disabled Behaviours are not. |
isActiveAndEnabled | Has the Behaviour had active and enabled called? |
attachedRigidbody | The Rigidbody2D attached to the Collider2D. |
bounciness | Get the bounciness used by the collider. |
bounds | La área delimitadora en el espacio del mundo del collider. |
composite | Get the CompositeCollider2D that is available to be attached to the collider. |
density | La densidad del collider utilizado para calcular su masa (cuando la masa automática está habilitada). |
friction | Get the friction used by the collider. |
isTrigger | Este collider está configurado como trigger? |
offset | La variación local de la geometría del collider. |
shapeCount | La cantidad de regiones con formas separadas en el collider. |
sharedMaterial | The PhysicsMaterial2D that is applied to this collider. |
usedByComposite | Sets whether the Collider will be used or not used by a CompositeCollider2D. |
usedByEffector | Si o no el collider es utilizado por un effector adjunto o no. |
gameObject | El game object que tiene este componente adjunto. Un componente siempre está adjunto a un game object. |
tag | El tag de este game object. |
transform | The Transform attached to this GameObject. |
Cast | Casts the Collider shape into the Scene starting at the Collider position ignoring the Collider itself. |
ClosestPoint | Returns a point on the perimeter of this Collider that is closest to the specified position. |
CreateMesh | Creates a planar Mesh that is identical to the area defined by the Collider2D geometry. |
Distance | Calculates the minimum separation of this collider against another collider. |
GetContacts | Retrieves all contact points for this Collider. |
GetShapeHash | Generates a simple hash value based upon the geometry of the Collider2D. |
IsTouching | Revisa si este collider está tocando el collider o no. |
IsTouchingLayers | Revisa si este collider está tocando cualquiera de los colliders en una layerMask especificada o no. |
OverlapCollider | Get a list of all colliders that overlap this collider. |
OverlapPoint | Revisa si un collider se sobrepone en un punto en el espacio. |
Raycast | Casts a ray into the Scene that starts at the Collider position and ignores the Collider itself. |
BroadcastMessage | Llama al método denominado methodName de todos los MonoBehaviour en este game objecto en cualquiera de sus hijos. |
CompareTag | ¿Este game object está etiquetado con tag? |
GetComponent | Returns the component of Type type if the GameObject has one attached, null if it doesn't. Will also return disabled components. |
GetComponentInChildren | Retorna el componente de tipo type en el GameObject o cualquiera de sus hijos utilizando depth first search (busqueda de profundidad). |
GetComponentInParent | Retorna el componente de tipo type en el GameObject o cualquiera de sus padres. |
GetComponents | Retorna todos los componentes de tipo type en el GameObject. |
GetComponentsInChildren | Retorna todos los componentes de tipo type en el GameObject o cualquiera de sus hijo. |
GetComponentsInParent | Retorna todos los componentes de tipo type en el GameObject o cualquiera de sus padres. |
SendMessage | Llama al método denominado methodName en cada MonoBehaviour de este game object. |
SendMessageUpwards | Llama al método denominado methodName en todos los MonoBehaviour de este juego y en todos los ancestros del behaviour. |
TryGetComponent | Gets the component of the specified type, if it exists. |
OnCollisionEnter2D | Se envia cuando un collider entrante entra en contacto con el collider de este objeto (física 2D solamente). |
OnCollisionExit2D | Enviado cuando un collider en otro objeto para de tocar el collider de este objeto (física 2D solamente). |
OnCollisionStay2D | Enviado cada frame donde un collider en otro objeto está tocando el collider de este objeto (física 2D solamente). |
OnTriggerEnter2D | Enviado cuando otro objeto ingresa a un trigger collider adjunto a este objeto (física 2D solamente). |
OnTriggerExit2D | Enviado cuando otro objeto deja un trigger collider adjunto a este objeto (física 2D solamente). |
OnTriggerStay2D | Enviado cada frame donde otro objeto está dentro de un trigger collider adjunto a este objeto (física 2D solamente). |