Board index FlightGear Development

Is it possible to get the click position on an AI object ?

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

Is it possible to get the click position on an AI object ?

Postby mhab » Sat Dec 29, 2018 6:07 pm

I can get the position where a click occured on terrain/landscape from "/sim/input/click/..." and via the Nasal function geo.click_position();
If however I click e.g. on the deck of a carrier this position is not set, as I havn't touched the terrain.

My question is, if there is a way to find out - on Nasal level - where I clicked on the object ?
i.e. I would like to know more precisely where I clicked, than a pick animation would tell me, which fires in any case if I pick the object and doesn't tell me where I touched it.

Thanks
Mike-DE
mhab
 
Posts: 405
Joined: Thu Apr 18, 2013 10:59 pm
Callsign: D-MIKE
Version: 2017.1.2
OS: Win7

Re: Is it possible to get the click position on an AI object

Postby Hooray » Sat Dec 29, 2018 7:36 pm

Hi, not sure what exactly you have in mind, but the jetways stuff is implemented in Nasal and uses click-able "AI objects" (animated jetways).
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11259
Joined: Tue Mar 25, 2008 8:40 am


Return to Development

Who is online

Users browsing this forum: No registered users and 0 guests