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

有些话、适合烂在心里 提交于 2019-12-13 02:03:37

问题


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:


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



来源:https://stackoverflow.com/questions/5736236/object-in-spherebounding-sphere-want-it-to-restrict-movement-within-sphere

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!