- Home /
Ball with sphere collider is hovering, how do I keep the collider and place the ball on the ground?
So I have my "player" which is a ball in this case. I have a sphere collider to add items to a list, without the ball having to touch them.
private List<GameObject> ReachableObjects = new List<GameObject>();
SphereCollider checkObjects = objectChecker.GetComponent<SphereCollider>();
public void OnTriggerEnter(Collider objectList){
ReachableObjects.Add(objectList.gameObject);
(The code is probably irrelevant)
This makes my ball hover since the sphere collider is larger than the ball. I tried using the circle collider for 2D, but that can't be rotated to a horizontal collider around the ball, which is pretty much what I need.
How can I keep this collider effect and get rid of the hover of the player object?
Your answer
Follow this Question
Related Questions
How can I change sprites when player enters Collider?????? 2 Answers
Model/mesh has huge collider even though there is no collider added and even if there was why so big 1 Answer
Capsule collider is able to 'squeeze in' between 2 other capsule colliders. Don't want that 1 Answer