Selecting an entity in 3d space

Blitz3D Forums/Blitz3D Beginners Area/Selecting an entity in 3d space

Agamer(Posted 2005) [#1]
Back to coding in b3d after being a way for a while exsploring c# and blitzmax, does a month or 2 count as a while?

Any way to the point.

My question is how do you select and an entity in 3d space.

So that may not be clear so here's an example.

I have a cube rotating in blitz 3d, I want to know when thats clicked on, what is the best way to do this, sorry if this is easy, I more wanted to know the best way than any thing.

Thanks in advance :P


GitTech(Posted 2005) [#2]
Make it pickable with the EntityPickMode() command, and using CameraPick() at the mouse coordinates.


Agamer(Posted 2005) [#3]
aha
Thanks for that advice

One question
IF you have two entitys one behind the other both pickable and call camrea pick which one will get picked, I persume the front one, well I hope so!


GitTech(Posted 2005) [#4]
Yep, the front one :)


GC-Martijn(Posted 2005) [#5]
@GitTech hey een nederlander !


GitTech(Posted 2005) [#6]

@GitTech hey een nederlander !



En drie keer raden uit welke stad ik kom :P


Agamer(Posted 2005) [#7]
Aha, I am confused, I take this has nothing to do with my problem which is no longer a problem :P