Martinos
Martinos

Reputation: 105

Object in sphere(bounding sphere), want it to restrict movement within sphere

i have 2 bounding spheres, one big and one small , the small will be moving inside the big but i dont want it to go outside the big bounding sphere how do i do it?

I tried with the bounding box and the intersection method but it doesn't seem to work.

Upvotes: 1

Views: 130

Answers (1)

cush
cush

Reputation: 283

Do you have some of your code that we can take a look at, so we can determine why it is not working?

Otherwise here is some information on BoundingSpheres: http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.boundingsphere_members.aspx

Upvotes: 1

Related Questions