Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
33 user(s) are online (22 user(s) are browsing Forum)

Members: 0
Guests: 33

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +0€

Current balance: 60€
(last updated 03/2020)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 47 users playing Freelancer on 44 servers.
March. 29, 2020

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



Calculating Turn Rate & Responsiveness

Joined:
2016/3/29 21:54
From Cambridge, England
Group:
Registered Users
Trusted Speciality Developers
Posts: 29
Offline
Hey everyone. I'm trying to work out how exactly FLStat calculates the various fields present within a shiparch entry. FLStat shows the following stats at the top of a ship entry:

Open in new window

I know a ship has a few different values which could factor in this calculation. AngularDrag, SteeringTorque, MaxBankAngle, all come to mind as being key players in that.

Does anyone have the exact equation I can do to get the values that FLStat gets?

An example of a ship would be the Anubis. It has a Max Angular Speed of 60.09 deg/s (turn rate). A Angular Distance from 0 to 0.5 of 18.81 degrees. And a time to 90% of Max Angular Speed of 0.4717 (responsiveness).

It has the following ini:
Code:

max_bank_angle = 30
steering_torque = 43000.000000, 43000.000000, 230000.000000
angular_drag = 41000.000000, 41000.000000, 141000.000000

Posted on: 3/3 19:00
Way too ambitious for his own good.
Top
Re: Calculating Turn Rate & Responsiveness

Joined:
2019/1/22 4:34
Group:
Registered Users
Posts: 35
Offline
Actually, all you need to know is all these values are directly proportional to mass. Attention, there is an exponential function weight between mass and ship class(only if in your game, lvl0=light fighter and lvl10+=cruiser/battleship...etc.). You could use formulas below.

(steering_torque)=200*mass*(1.637893707^(ship_class))

'(1.637893707^(ship_class)' is used in my mod. You can replace '1.637893707' with any number you think is correct.

And angular velocity(ω)=(steering_torque)/(angular_drag)

As for those '90%' things, they are automatically calculated. So It doesn't really matter how much they are.

Posted on: 3/4 2:48
Top
Re: Calculating Turn Rate & Responsiveness

Joined:
2016/3/29 21:54
From Cambridge, England
Group:
Registered Users
Trusted Speciality Developers
Posts: 29
Offline
Interesting. What does each of the values equate to though? AngularDrag and steering torque has three values assigned to them. Also, the reason i want to know the formula is in trying to create my own application that will have these values in it. So i still need to know the turn rate and responsiveness equation. I'm trying to emulate FLStats handling here.

Posted on: 3/4 8:32
Way too ambitious for his own good.
Top
Re: Calculating Turn Rate & Responsiveness

Joined:
2019/1/22 4:34
Group:
Registered Users
Posts: 35
Offline
Jesus, I worked for a few hours but nothing came out about "Radians from 0 to 0.5 seconds" and "Time to reach 90% of maximum angular velocity" except they are related to rotation_inertia.

Anyway, in shiparch.ini:
...
steering_torque = x, y, z
angular_drag = x, y, z
rotation_inertia = x, y, z
...

Max angular velocity = steering_torque/angular_drag

...And here's all I know. Sorry for not helping about the formula. I will just put the Link to the source file here(thanks to Adoxa's site).

Posted on: 3/4 12:06
Top