- Home /
Collision Detection + Transform Offset Question
So, I'm using Translation as my primary form of moving everything within my game. This being the case, having gravity set to 0 isn't exactly ideal (It works, but I like having more control than this apparently :( ). However, when an object is set to Kinematic, I believe unity no longer applies offset to the object. So, my question is this: To apply transform offset, I need to detect which side of a collider (boxCollider2D), is inside of another object. I believe using raycasting/linecasting to do this would get the job done. But I'm hoping there is some way to detect which side of a collider is touching another collider without using these functions.
Thank you any assistance on this! Cheers o/
Your answer
Follow this Question
Related Questions
Moving player to generated position 2 Answers
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
MousePosition Offset 0 Answers