camerapick question
Blitz3D Forums/Blitz3D Programming/camerapick question
| ||
I want to use a function similar to camerapick but using the co-ordinates of a 3d pivot.... I don`t want to use linepick because of distance issues.. I have an animated player which when in the shoot position rotates shoulders up and down to point the gun. with camerapick the hud does not align correctly with the shoulder rotation no matter what I try, it always goes out of sync and doesn`t look correct. Therefore a pivot which could emulate the camerapick function assigned to the gun tip would be ideal if I could somehow take the co-ordinates and convert to a 2d camerapick. Do I make sense, can it be done ?? |
| ||
I think I have it CameraProject camera1, EntityX( g1,True ), EntityY(g1,True ) , EntityZ(g1,True ) DrawImage dot,ProjectedX(), ProjectedY() |
| ||
Why can't you use linepick? As far as i'm aware, it's camerapick() which has the distance issues. With LinePick you can specify the distance you want. |
| ||
Easy - although I don't see why you do it with a linepick - create a second camera, place it at the pivot's position with the same orientation then perform a camera pick with that camera. |