Collision Sprite with Image

Blitz3D Forums/Blitz3D Programming/Collision Sprite with Image

robby x(Posted 2004) [#1]
Hi,
I am using another mouse pointer (Bitmap) in order to shoot animated bitmaps - collision works fine. Is it possible to use sprites (LoadSprite()) instead of Images for my target as well ?
How can I check the collision between Image (LoadImage(..))
an dthe entity of the sprite ?

Regards
Robert


_PJ_(Posted 2004) [#2]
The difference is, 2D bitmap images are placed over the front of the screen.

3D sprites are actually placed in a 3D world. They are only displyed to the screen through an effective camera. There is no real connection between the two visual types.

However, with careful use of commands such as CameraProject and MousePick, you should be able to convert coordinates between the 3D world and the 2D screen.


Neochrome(Posted 2004) [#3]
if your using the BMP as a mouse pointer, Why not using CameraPick?


robby x(Posted 2004) [#4]
Hi,
I used the command LoadImage("target.bmp") for my mouse pointer. So you're right. Using another image (BMP) as target to shoot I can use ImagesCollide(...). Using an entity (e.g. mesh) as target I can use the command CameraPick(...). Works fine....

Thxs for your answer