Local Pick or TForm Pick?

Blitz3D Forums/Blitz3D Beginners Area/Local Pick or TForm Pick?

BLaBZ(Posted 2010) [#1]
I'd like to retrieve the local pick variable of an entity after it's been transformed and rotated, is there any way to do this?


stanrol(Posted 2010) [#2]
Welcome To Blitz3D!


Warner(Posted 2010) [#3]
Yes, you can use TFormPoint to do that:
CameraPick camera, mousex(), mousey()

;transform from global (->0) to local (in this case->ent)
TFormPoint PickedX(), PickedY(), PickedZ(), 0, ent



BLaBZ(Posted 2010) [#4]
Omg so brilliant! You're a life savor you don't even know =D