Pick Entity

Blitz3D Forums/Blitz3D Beginners Area/Pick Entity

BLaBZ(Posted 2007) [#1]
What does it mean to make objects pickable?

How does it work?

Do you know of any tutorials?


boomboom(Posted 2007) [#2]
first you have to set the entity you want to pick to be able to be picked, using:

http://blitzbasic.com/b3ddocs/command.php?name=EntityPickMode&ref=3d_a-z

then you can use the pick commands, this is the camera pick command, which is quite often used with the mouse co-ords to pick an entity that the user has clicked on:

http://blitzbasic.com/b3ddocs/command.php?name=CameraPick


BLaBZ(Posted 2007) [#3]
Thanks but what does it do? Why would I ever want or need to use this?


big10p(Posted 2007) [#4]
They are for when you need to identify/select an entity, for whatever reason.

For example, you can use CameraPick with the mouse position to select an entity on-screen by clicking on it.