Feature Creep / lua function that can do 2d mouse coords to a ray

Years of Service
User Offline
Joined: 9th Mar 2015
Posted: 8th Sep 2017 15:44
With game guru scripting there are now commands like IntersectAll and RayTerrain that take a ray as input and tell what entity was hit with it or what xyz was hit on the terrain. Together with camera and player we can use those. But there does not yet seem to be a command/way that makes ray from 2D mouse coordinates. Having that would enable point & click style games and rts games games by being able to select a unit.

For some background on this request: https://forum.game-guru.com/thread/218559
3D Media Maker
Years of Service
User Offline
Joined: 23rd Nov 2015
Location: Hertfordshire
Posted: 8th Sep 2017 18:01
It would be great to have an easy way to do this, in Unity using ray casting it's actually really simple and only needs a few lines of code to get it working, some way of doing that here would be great, and it would be a big step towards opening up other genres of game types to live up to the claim that we can make lots of different types (which just isn't true yet as all we can really do is a fairly standard FPS and extremely limited third person/isometric) of games.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.

Login to post a reply

Server time is: 2021-04-15 06:21:01
Your offset time is: 2021-04-15 06:21:01