Some questions about unity collision/physics system used in a map editor.

Hi!,

I’m creating a little rts in unity. My units when moving with mouse have to collide with other units and do not traspase them.

I have been playing with Unity collision/physics sytem, but don’t know how to make unity handle this for me. The only thing I need is that when 2 objects collide they do not overlap, but I allways get same result: The object that was hit by the one moved with the mouse flies away because of the impact. I know I can use triggers and adjust positions if this happens, but I would like unity to handle this for me, is it possible?

Thanks in advance,
HexDump.

Set the rigidbody’s isKinematic variable to true and it won’t be moved by physics.

Hi!,

Yes I could do that but then no collision detection will be performed by unity, and bodies overlap. Do I have to do anything more?

Thanks in advance,
HexDump.