Page 1 of 1

Help creating a working wing for F1 racing car

Posted: Wed Dec 29, 2010 12:27 pm
by fo0k
Can anyone maybe post a bit of code for a working wing on my F1 car? I need some downforce on the front and rear (at speed preferably..?)

I'm not familiar with aircraft and they seen to have plenty of elements so I'm not sure whats the bare basics to get a wing like this I can go tweak. thx

Re: Help creating a working wing for F1 racing car

Posted: Fri Dec 31, 2010 12:26 am
by Swaffy
You want a wing with lift. You can copy and paste a wing from a plane such as a Corsair or BF109.

Then you want to make it upside-down.
[Rotate it 180 degrees to flip it over.]

I am not sure which axis to flip it on.

Re: Help creating a working wing for F1 racing car

Posted: Fri Dec 31, 2010 12:38 am
by Swaffy
I found this:

[In the Corsair's Physics.con file]

rem *** CorsairBodyWingVertical ***
ObjectTemplate.create Wing CorsairBodyWingVertical
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setPositionOffset 0/0/-0.1 [Can be changed to 0/0/0]
ObjectTemplate.setWingLift 2
ObjectTemplate.setFlapLift 0

[In the Corsair's Objects.con file, added to "CorsairComplex" bundle]
ObjectTemplate.addTemplate CorsairBodyWingVertical
ObjectTemplate.setRotation 0/0/-89.999

Try changing the rotation to this in attempt to make it upside-down:
ObjectTemplate.setRotation 0/0/180

Use this to change the position of the wing on your vehicle:
ObjectTemplate.setPosition 0/0/0

Hope this helps.

Re: Help creating a working wing for F1 racing car

Posted: Sun Jan 09, 2011 12:01 am
by Apache Thunder
As I understand how the setWingLift command works from how the MDT backup site shows, it makes it lift upwords (relative to the vehicle position! Not world position!). So instead use a negative value to make it lift down instead of up. Rotating it upside down might not work as the wing lift command will always lift up relative to the object's main hull regardless of wing position/rotation.

The flaplift command can probably be left at zero since it's purpose is to provide lift/friction in a different manner then the other command. Since the wing will only make the car go down and the car won't be "flying", a flap lift setting is probably not needed.

Re: Help creating a working wing for F1 racing car

Posted: Sun Jan 09, 2011 2:42 am
by fo0k
thanks.. i did get this going in fact... a lot easier than i thought. v e r y tricky to balance it on an Formula 3 car though!

but its working.. once i get this map finished ya'll will need to take a look. some very decent use of bf42 and its a damn pretty map too. :)