CameraPick is handy as you can pick empty space with it - ie:
If MouseHit(1) And entity=0
cube=CreateCube()
PositionEntity cube,world_pos_x, 1,world_pos_z
EndIf
You can calculate the 3D world coordiates via use of CameraProject, ProjectedX() and ProjectedY().
However, this is great if you don't move the overhead camera - as soon as you do you lose position accuracy. You can zoom in and out and preserve accuaracy - but as soon as you scroll the camera, bang goes the accuracy.
CameraPick is great for picking an entity as it works with the perspective of the camera - so it is great at what it does.
So, LinePick is surely the saviour as it couldn't care less about the perspective when picking a world position. However, I don't want to pick anything - I want to pick a position in 3D space.
How can I achieve this with LinePick? CameraPick can pick null (I'm not sure if it was designed to pick null, but you can force it).
If MouseHit(1) And entity=0
cube=CreateCube()
PositionEntity cube,world_pos_x, 1,world_pos_z
EndIf
You can calculate the 3D world coordiates via use of CameraProject, ProjectedX() and ProjectedY().
However, this is great if you don't move the overhead camera - as soon as you do you lose position accuracy. You can zoom in and out and preserve accuaracy - but as soon as you scroll the camera, bang goes the accuracy.
CameraPick is great for picking an entity as it works with the perspective of the camera - so it is great at what it does.
So, LinePick is surely the saviour as it couldn't care less about the perspective when picking a world position. However, I don't want to pick anything - I want to pick a position in 3D space.
How can I achieve this with LinePick? CameraPick can pick null (I'm not sure if it was designed to pick null, but you can force it).