XNA Static Collider

Rating: No reviews yet
Downloads: 464
Released: May 23, 2010
Updated: May 31, 2010 by Abbebb
Dev status: Beta Help Icon

Recommended Download

Source Code StaticCollider.7z
source code, 14K, uploaded May 31, 2010 - 464 downloads

Release Notes

Provides collision detection between a Model and BoundingSphere, or a Model and Ray.

If you want to use this, first you must initialize your Collidee entity.
Collidee entity;


entity = new Collidee(Content.Load<Model>("YOUR MODEL NAME"), Rotation (Quaternion), Position (Vector3), Scale (float));

Next, you can freely use collision detection by calling the function:
//Insert reaction code here.


if(entity.Intersects(Ray, DEPTH -Z (float))
//Insert reaction code here.

If you want to sacrifice performance depending on model complexity, then you might be able to get away with moving/scaling/rotation the STATIC model :P

Lastly, if you want to render your model (if you don't, you're crazy), then...
entity.Render(View Matrix, Projection Matrix);

Hopefully its that easy :P

Good luck, and have fun.
And please PLEASE make suggestions... its too quiet here!

Reviews for this release

No reviews yet for this release.