Hey guys. So the game I am currently working requires a camera that can be “dragged” around the map. The camera is looking down at the 3d terrain. any help would be great!
So what’s the problem?
At drags tart, you save the pointed coord on your terrain plan
At dragging tick, you :
- get the new pointed coord,
- subscride the saved point,
- translate your camera of the resulting vector,
- save the new pointed coord for next tick.
To get the pointed coord in you terrain plan, you can collide a ray starting on the camera, following the mouse coord, colliding with a 1000;1000;1 cubemesh. The collision point is what you need.
Hope it helps