Object in sphere(bounding sphere), want it to rest

2019-08-04 10:40发布

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.

1条回答
贼婆χ
2楼-- · 2019-08-04 11:23

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

查看更多
登录 后发表回答