Wiki

Case Status
Log In

Wiki

 
Home ยป Action Reference»Physics 2d Actions»Get Collision2D Info
Index
Navigation
Community Wiki

Get Collision2D Info

Gets info on the last collision 2D event and store in variables. See Unity and PlayMaker docs on Unity 2D physics.

Game Object Hit
Get the GameObject hit.
Relative Velocity
Get the relative velocity of the collision.
Relative Speed
Get the relative speed of the collision. Useful for controlling reactions. E.g., selecting an appropriate sound fx.
Contact Point
Get the world position of the collision contact. Useful for spawning effects etc.
Contact Normal
Get the collision normal vector. Useful for aligning spawned effects etc.
Shape Count
The number of separate shaped regions in the collider.
Physics 2d Material Name
Get the name of the physics 2D material of the colliding GameObject. Useful for triggering different effects. Audio, particles...

 

Tags:

Last modified on 3/14/2016 8:23 AM by User.

  • RSS Feed