Sprite detection

Blitz3D Forums/Blitz3D Programming/Sprite detection

Jack(Posted 2005) [#1]
Would this be possible in blitz?

1.Create a sprite including a "black area".
2.Determine if an object hits the sprite;it seems there is no collision detection for sprites.Correct?
3.Determine if the part of the sprite contacted was the "black-invisible" area.
4.I can't use quads because it surely involve too much flipping to get them facing the camera.It least I think it does.Probably have 100-200 at a time.

I am currently using an invisible mesh with the sprite centered in the mesh.This works super since I can shape the meshes to anything I want and get good collision detection but it involves a great deaal of time.

Any ideas?


jhocking(Posted 2005) [#2]
*poof*


jhocking(Posted 2005) [#3]
You can do collision detection with sprites, just not sphere-polygon. Now detecting what part of a sprite was collided with, that's a trick.


Ross C(Posted 2005) [#4]
Since sprites are circular, you could get the collision x y z, and work out the rotation of the sprite and translate this, to get a x y and z.


Jack(Posted 2005) [#5]
jhocking - thanks.

I assume that just because a part of the sprite is invisible will
not help my problem.hat part will still be treated as part of the sprite.Obvious I guess?

Ross -darned if I know what you are talking about.