From: MLM Veraart (veraart++at++fel.tno.nl)
Date: 10/01/2002 06:24:30
³¯®a¥Í(Archer Chen) wrote:
>
> Hi, performer ,
> I load a .flt file with hierarchy structure by "pfdLoadFile(filename)".
> How and what should I do that I wish to control the hierarchy structure??
> For example, a car FLT file contains two parts : body and wheels.
> If I could know that the car will turn left , may I control the wheels to turn left first alone,
> and than the body turn left?
> Theank for your patience.
>
> Regards,
> Archer Chan
You have to give all the wheels in the flight file a DOF (Degree Of Freedom). Some wheels can rotate around two axis, steering wheel, the other around one axis.
In your flight loader callback process the DOF information, see README file of the flight loader.
At run time: adjust the rotation of the wheels according to the steering position and adjust the
pfDCS car rotation according to its orientation on the road.
Mario
This archive was generated by hypermail 2b29 : Tue Oct 01 2002 - 06:25:50 PDT