Search Unity

Rigidboby collision and penetration direction

Discussion in 'Scripting' started by VortexStudios, Sep 14, 2012.

  1. VortexStudios

    VortexStudios

    Joined:
    Jul 16, 2012
    Posts:
    84
    hello,

    I'm working in a shooter and I need to know how much one rigidbode had penetrad in another onde and the direction...
    Some one have any idea??


    All the best,
    Alexandre
     
  2. HarvesteR

    HarvesteR

    Joined:
    May 22, 2009
    Posts:
    531
    Look up MonoBehavior.OnCollisionEnter(Collision c) and related methods. The data you're looking for is all there.

    Cheers