Question by
Hephai5tos · Oct 27, 2021 at 03:54 PM ·
collisionrigidbodycoliderontriggeroncollision
How to get a collision without rigitbody?
Hi. Is it possible, to detect a collision without a rigitbody, but have still a collision-object. I know there is the OnTrigger...-method, but that gives only a collider, not a collision. So is there a way, to get the collision in a OnTrigger...-method, or use a OnCollision... without a rigitbody (resp the rigitbody's physics)? Or maybe a complete different way to detect a collision? Thanks for responding.
Comment
If two objects collide, then both must have a collider and at least one of them must have a rigidbody. Unity documentation with examples of Collisions: https://docs.unity3d.com/ScriptReference/Collider.OnCollisionEnter.html