Paul Hexem Posted September 21, 2014 Share Posted September 21, 2014 I've got a vehicle script I picked up and I'm trying to get it to bank, but none of the banking parameters seem to have any effect. I'm sure I'm missing a paramter, is anyone able to spot it?http://pastebin.com/inJjxFdZ Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 22, 2014 Share Posted September 22, 2014 I assume you know that neither of the bits of code you linked to is a complete script. They are functions that set the vehicle parameters at the head of a script in which you have to provide all the control functions. When you do that, the code you provided ought to work, as long as you haven't restricted rotation in any of the three directions (X, Y, and Z). The banking parameters in it should make your airplane respond well. Link to comment Share on other sites More sharing options...
arton Rotaru Posted September 22, 2014 Share Posted September 22, 2014 Make sure you are applying an angular motor around the roll axis to make use of the banking feature. Usually the X axis. All it does is to make a rotation around the Yaw axis, when rolling. The vertical attractor timescale has a rather strong effect on how far it will bank. Stronger banking = longer vertical attractor timescale values. Link to comment Share on other sites More sharing options...
Paul Hexem Posted September 22, 2014 Author Share Posted September 22, 2014 Rolig Loon wrote: I assume you know that neither of the bits of code you linked to is a complete script. They are functions that set the vehicle parameters at the head of a script in which you have to provide all the control functions. When you do that, the code you provided ought to work, as long as you haven't restricted rotation in any of the three directions (X, Y, and Z). The banking parameters in it should make your airplane respond well. Yes. I pulled that section out, because I thought that's where the problem was. I haven't restricted anything and the vehicle "works" fine. It just won't bank. arton Rotaru wrote: Make sure you are applying an angular motor around the roll axis to make use of the banking feature. Usually the X axis. All it does is to make a rotation around the Yaw axis, when rolling. The vertical attractor timescale has a rather strong effect on how far it will bank. Stronger banking = longer vertical attractor timescale values. That could be what's going on. Currently my control inputs only change the angular.z axis, which presumably causes left/right turning. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now