Board index FlightGear Support Interfacing

Modifying AI model offsets on the fly

Connecting two computers, using generic protocol, connecting with Matlab?

Modifying AI model offsets on the fly

Postby techyCoder81 » Fri Jun 14, 2019 9:56 pm

I have an AI craft that I'm creating with an AI scenario, and that I'm then controlling with some nasal. However, I cant seem to figure out how I can modify the offsets of this model on the fly. How would I do that?

scenario.xml
Code: Select all
<?xml version="1.0"?>
<PropertyList>
  <scenario>
    <name>test flight scenario</name>
    <description>This scenario is used to demonstrate the flightpath</description>
    <entry>
      <callsign>object-nasal</callsign>
      <type>static</type>
      <class>jet_transport</class>
      <model>Aircraft/my-aircraft.xml</model> <!-- this is the one i need to modify the offsets for -->
    </entry>
  </scenario>
</PropertyList>


my-aircraft.xml
Code: Select all
<?xml version="1.0"?>
<PropertyList>
  <path>modelpathhere.ac</path>
<property>
  <offsets>
   <x-m>5</x-m>
   <y-m>0</y-m> <!-- these values need to be changed real time -->
   <z-m>0</z-m>
  </offsets>
</property>
</PropertyList>


Any help?
techyCoder81
 
Posts: 3
Joined: Mon Jun 03, 2019 6:49 pm

Re: Modifying AI model offsets on the fly

Postby Octal450 » Fri Jun 14, 2019 10:30 pm

Not possible. You'll need to use translate animation to move em.

Kind Regards,
Josh
Waste of time. Goodbye forever.
Octal450
 
Posts: 4398
Joined: Tue Oct 06, 2015 12:51 pm


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest