Jim Wilson writes:

 > 2). On a fixed wing aircraft, if origin is anywhere but between the
 > wings the external model views that follow along with the aircraft
 > (e.g. chase view) will not look correct.  The camera is tied to the
 > origin.  If the origin is at the nose or tail then the plane
 > "looks" like it's wagging when it pitches.  And if the origin is
 > too high or too low again the model can "appear" to be swinging
 > like a pendulum or sliding when it should simply be rolling.

OK, finally I understand the problem.  What we need to do, then, is
apply the euler angles to the CG rather than the origin when rotating
the 3D model.  We need only two steps:

1. have the FDMs report the current CG relative to the origin (if they
  don't already); and 

2. add a couple of transforms to acmodel.cxx so that we use the CG as
   the centre of rotation.

This will be especially nice for modelling out-of-balance situations
(like 500lb of baggage in the back of a 172) -- everything will come
out looking right.  It will also be valuable for aircraft that have
massive balance shifts, like a military aircraft dropping ordnance.  I
don't expect that this will be a big job.  What does everyone else
think?


All the best,


David

-- 
David Megginson, [EMAIL PROTECTED], http://www.megginson.com/

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to