Advertisement

Picking a piece of a terrain - orders?

Started by March 30, 2002 04:30 AM
0 comments, last by TrileNOB 22 years, 10 months ago
Hello, I''m using blitz basic for my RTS game. I want now to determine where user clicked on screen coordinates and than transform them into world coordinates. I use CameraPick for entities like cars, tanks but I cannot pick whole terrain!!! Trile[NOB]
Trile[NOB]
Simply cast a ray from the camera across the terrain, and stop when ray.z <= terrainZ[ray.x][ray.y]. The resulting point of intersection is (ray.x, ray.y, ray.z).

This topic is closed to new replies.

Advertisement