Questions tagged [bounding-spheres]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
358 views

What´s wrong with my Frustum Culling implementation?

I´m struggling with a weird problem since hours. Ive implemented frustum culling with the help of online articles and a book. The problem is that the objects are not culled correctly. I´m using ...
Arizon5000's user avatar
0 votes
1 answer
147 views

Having some trouble with my frustum checking code

I'm trying to check if a bounding sphere is either within or intersecting my frustum. It mostly works but there are cases where it should and it doesn't. The frustum is made up of 6 planes which have ...
Hayden Morris's user avatar
1 vote
2 answers
801 views

Efficient collision detection of sphere with wall

I'm building a first-person game where up till now the player has been represented as a dimensionless point; this makes collision detection really easy, as I can just cast a ray along their velocity ...
Logan R. Kearsley's user avatar
2 votes
1 answer
3k views

Welzl Algorithm to find the Smallest Bounding Sphere

I'm implementing Welzl's Algorithm to find the Smallest Bounding Sphere. In brief, the algorithm works by maintaining: a set of points to contain in the sphere (inside its interior, or on its ...
FloFu's user avatar
  • 382
3 votes
1 answer
6k views

How do I implement a AABB-Sphere collision

i have been trying to implement an aabb-sphere collision. This is what I tried ...
Macky ben Jonah's user avatar
1 vote
0 answers
69 views

How can I use a bounding sphere for intersection? [closed]

How can I use a bounding sphere for intersection, like on a statue? Would I use the radius to detect intersection?
Terry's user avatar
  • 11
1 vote
1 answer
427 views

Clamp point to triangle for sphere collision

I'm having some issues clamping a 3d to barycentric triangle. I've searched for some time now and keep seeing the same results, that (u,v,w) should be clamped between 0 and 1. But when I clamp those ...
Josyah Dooley's user avatar
3 votes
1 answer
161 views

Bounding Volumes for Empty Space

I'm creating an Android game that relies heavily on collision detection for a couple of players (at least up to 4). I researched hierarchical structures that could speed up the process. Because I have ...
philipp's user avatar
  • 31
-1 votes
1 answer
192 views

Smooth radial collision

I'm trying to make collisions smoother in my game. Currently, entities will stop completely when they collide with an obstacle. I saw the following article recently: http://www.gamedev.net/page/...
Mitch's user avatar
  • 295
0 votes
1 answer
1k views

How do I get a SphereCollider's global origin in Unity?

I've been following this tutorial: Understanding Steering Behaviors: Collision Avoidance but I'm having trouble implementing one of the functions correctly in Unity, here's the code: ...
GelatinFox's user avatar
1 vote
1 answer
174 views

Calculate diameter of sphere large enough to encompasss a frustum

I'm attempting to speed up box-to-box collision checks by first testing if two spheres large enough to encompass each (respectively) would collide (because I'm using separating axis theorem and it's ...
zeroth's user avatar
  • 123
0 votes
1 answer
1k views

XNA 3D Unable to Position Bounding Sphere

I have a collision method that seems like it would work, and it does, but the bounding sphere is always at 0, 0, 0. How do I fix this? Any more code and or details are available upon request. ...
SupremeSteak1's user avatar
4 votes
4 answers
917 views

Wall penetration

I have a terrain with geometry that is fairly ridged. I needed to make sure the player didn't enter the world geometry, so I used sphere-triangle intersections (after narrow down of which tris to ...
bobobobo's user avatar
  • 17k
1 vote
1 answer
667 views

How to calculate the Screen Position of a bounding sphere/box?

Synopsis: What I have is an object rendered on the screen. I need to calculate the top-left / bottom-right of it's location on the screen in Screen Coordinates. Explanation: The object is ...
AzHole's user avatar
  • 53
1 vote
2 answers
622 views

Simple Bounding Sphere Calculations for 2d game

I'm writing a 2d game and have a question regarding the use of bounding spheres. I'm kind of OK with the math, but I'm confused about one thing. To work out the distance between the 2 centre points ...
BungleBonce's user avatar
  • 1,927
1 vote
1 answer
1k views

Unity3d: Box collider attached to animated FBX models through scripts at run-time have wrong dimension

I have several scripts attached to static and non static models of my scene. All models are instantiated at run-time (and must be instantiated at run-time because I'm procedural building the scene). ...
Heisenbug's user avatar
  • 2,144
2 votes
2 answers
1k views

Transforming bounding spheres

When testing bounding spheres as part of the collision detection process, I'm using this method: ...
3Dave's user avatar
  • 3,131