Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » I need information on how vechicle movement works
I need information on how vechicle movement works [message #88480] Tue, 18 May 2004 18:45 Go to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

i.e. all the wheel bones etc.

What I need is complete information such as "rotate the wheelp bone 20 degrees around the X axis every 30 seconds then rotate the wheelc bone 20 degrees around the Y axis every 5 seconds" or something.

i.e. all the info needed to take a renegade vechicle and make it move "realisticly" (in the renegade context) accross the screen at a certain speed. (whichever speed is easiest to animate will do)


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
I need information on how vechicle movement works [message #88576] Wed, 19 May 2004 00:17 Go to previous messageGo to next message
gibberish
Messages: 366
Registered: May 2003
Karma: 0
Commander
Dunno If this will help you much, but I might as well get the ball rolling:

If a vehicle is moving in a straight line we have:


Circumference = Pi * WheelRadius * 2


- The Distance a vehicle travels
Distance = Rotations * Circumference


- Also Distance is related to speed
Distance = Speed * Time

Note: Speed is in GameUnits per second.



- So putting this together we get:
Speed * Time = Rotations * Pi * WheelRadius * 2


- However time is determined by the interval between the frames.
Time = 1 / FPS


- So we now have
Speed / FPS = Rotations * Pi * WheelRadius * 2


- So re-arranging for rotations we get
Rotations = Speed / (FPS * Pi * WheelRadius * 2)



Now you can just multiple Rotations by 360 to get Degrees or 2 Pi for Radians.

Note: If you use Radians you can elimiate Pi from the calculation completely:

RadiansPerFrame = Speed / (FPS * WheelRadius)
I need information on how vechicle movement works [message #88920] Wed, 19 May 2004 21:51 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

That doesnt help Sad

I need to know in terms of the various bones Renegade uses for wheels.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
I need information on how vechicle movement works [message #88974] Thu, 20 May 2004 08:36 Go to previous messageGo to next message
Slash0x is currently offline  Slash0x
Messages: 455
Registered: January 2004
Location: California
Karma: 0
Commander
jonwil

That doesnt help Sad

I need to know in terms of the various bones Renegade uses for wheels.

WheelC01R, WheelC02R, WheelC03L, and WheelC04L for center of the wheel bones.

WheelP01R, WheelP02R, WheelP03L, and WheelP04L for the bottom of the wheel bones.

I'm not at home, so the above is guessing, but I'm pretty sure about it.


L3T'5 4LL THR0W 3GG5 4T D4 N00B! Smile
I need information on how vechicle movement works [message #88984] Thu, 20 May 2004 10:06 Go to previous messageGo to next message
gibberish
Messages: 366
Registered: May 2003
Karma: 0
Commander
Slash0x


WheelC01R, WheelC02R, WheelC03L, and WheelC04L for center of the wheel bones.



Are all the center bones Axis aligned so you just do a rotation about the Y-Axis to spin the wheels?
I need information on how vechicle movement works [message #88985] Thu, 20 May 2004 10:10 Go to previous messageGo to next message
laeubi is currently offline  laeubi
Messages: 799
Registered: February 2003
Location: Germany
Karma: 0
Colonel

Vehicles.doc and the tuts on Renhelp tell you all you need about the bones.

www.laeubi.de Find Mods, Maps, Tool, Files and More!
< All Tutorials you ever searched for >
< contact me >
"Don't say it is imposible... just find a solution!"
I need information on how vechicle movement works [message #89016] Thu, 20 May 2004 12:39 Go to previous message
Slash0x is currently offline  Slash0x
Messages: 455
Registered: January 2004
Location: California
Karma: 0
Commander
Laeubi

Vehicles.doc and the tuts on Renhelp tell you all you need about the bones.

http://renhelp.co.uk/?tut=15
Viola!! The vehicle tutorial. Very Happy


L3T'5 4LL THR0W 3GG5 4T D4 N00B! Smile
Previous Topic: UnWrap Question
Next Topic: Now hiring.....
Goto Forum:
  


Current Time: Fri Dec 27 12:07:34 MST 2024

Total time taken to generate the page: 0.01399 seconds