lacost
April 1, 2013, 4:17pm
1
Hello, everyone.
I need to get collision’s or hits of sphere (or Circle) collider. I can not find solution for this…
For example RaycastHit[ ] hits = Physics.SphereCastAll(BW.transform.position, radius, Vector3.zero);
I do not need any direction, I have only sphere point and it radius.
Physics.OverlapSphere - I need something like this, but it does not return collision (only collider) or hits.
Thx.
Back when I made a snooker / pool game I used http://freespace.virgin.net/hugo.elias/models/m_snokr.htm - simple and works.
lacost
April 1, 2013, 5:33pm
3
thx for replay, but this i circle to circle collision, I need sphere (or circle) to mesh.
Mike_L
April 2, 2013, 2:25pm
4
cant you just use a sphere collider and OnCollisionEnter…
lacost
April 3, 2013, 10:16am
5
No, I can’t. Because collider will affect Physic, I need to avoid this.
And if I will switch sphere collider to trigger mode, It also will not return collision point, only collider.
Mike_L
April 3, 2013, 3:22pm
6
so the object has a rigidbody on it? cant you just set the rigidbody to not affect the position and rotation of the object?