Sphere Intersecting Plane help?

Hmmmm… Why didn’t I think of that? let’s hope this works. ;D

don’t be sorry haha I’m lost as hell right now any light even if it leads me into a corner is still something to appreciate.

Wasn’t exactly what I wanted but I guess it doesn’t exactly matter:D
Thanks for that suggestion Dzzd…I really don’t think I’d ever figure out the “real” way to do it…
This is probably alot faster anyways haha.

2 forums, 1 idea, 16 hours for just a work around, hahaha
If anyone figures it out I’d be curious as to how, but I don’t need it.
Thanks again everyone

to um… anyone who wants the code…


	public void SpherePlaneIntersection(float sx, float sy, float sz, Plane p){
		float sphereRadius = 2.0f;//not really a sphere anymore haha
		float distance = sphereRadius+1;
		float xRatio = 0f, yRatio = 0f;
		if(p.splatAxis.equals("XY")){
			distance = Math.abs(p.Z - sz);
		}else if(p.splatAxis.equals("ZY")){
			distance =  Math.abs(p.X - sx);
		}else if(p.splatAxis.equals("XZ")){
			distance =  Math.abs(p.Y- sy);
		}
		if(distance <= sphereRadius){
			//Collision
		}
	}