Anteworld - Outerra Game > JavaScript development

Extended Controls

<< < (3/3)

Uriah:
Let me take a closer look. Everything was working before the public release of version 6601, however now I am noticing a number of issues.

zzz:
I'm using JSB commands to move the geometry, but is there a way to get a geom object to respond to two different JSB commands?

If I have this:


--- Code: ---this.geom.rotate_joint_orig(this.canL, this.jsbsim['fcs/left-aileron-pos-rad'], {x:1,y:0,z:0});
this.geom.rotate_joint_orig(this.canL, this.jsbsim['fcs/elevator-pos-rad'], {x:-1,y:0,z:0});

--- End code ---

it only responds to elevator activity, and I have surfaces that act as both ailerons and elevators.

Uriah:
Just use a mixing function for flaperons/tailerons/elevons, etc. Representing that control surface in JSBSim FCS and declaring a new property for it to output is also possible.

Regards,
Uriah

cameni:
rotate_joint_orig always applies rotation to the base orientation. The second one should be just rotate_joint, accumulative one.

Navigation

[0] Message Index

[*] Previous page

Go to full version