Skip to main content
GameDev.net gamedev.net
🔒 Locked

Basic Collision Question

Started by Endemoniada Jul 15, 2003 at 1:45 PM 0 replies 250+ views
Original Post
Endemoniada
Endemoniada
Hi guys, If my sphere collides with a wall I make the resting place exactly the radius away. But then isn''t it still colliding ? Should the distance from the center of the sphere to the wall be less than the radius or less than or equel for a collision to occur ? Thanks.
oliii
oliii
that''s what''s called a resting contact, or contact.

To simplify, to avoid another immediate contact, if that bothers you, you can put the sphere position at a distance radius + 1 milimiter (or more) away from the wall. The sphere would jitter slightly if you try to keep pushing the sphere towards the wall.
Everything is better with Metal.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.