Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Street vehicle physics--a possibility?
Street vehicle physics--a possibility?
2003-08-04, 9:29 AM #1
I haven't edited JK in a loooong time, but I was just toying around with some car models I have converted (w/permission) to other games and thought, "JK could use some of these models in a racing mod." I don't think it would be too difficult to code in steering, I know I could code engine RPMs and such, but what about wheels? How would I get them to move with the speed of the car, and turn and such? I thought about keys, but I don't know that you can vary the speed of keys.

-Tazz

------------------
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

-Tazz
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

Tazz
2003-08-04, 10:46 AM #2
You can if it's in the pup with the right flags, look at Kyle's run anims.

------------------
Brutally honest since 1998
2003-08-04, 11:18 AM #3
definatly keys.

------------------
I am pjb.
Another post......
another moment of my life wasted.....
at least i made a level.
PJB's JK page's

-the PJB jedi rule book-
rule one, "never trust a bartender with bad grammar"-kyle katarn in JO

Rule Two, "Gravity is a crule misstress" -kyle katarn in MotS, and the alternatior MK I in AJTD
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2003-08-04, 4:21 PM #4
Ya, keys can do it, but I don't know if you can vary speed with keys, so it wouldn't look too real.

------------------
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

-Tazz
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

Tazz
2003-08-04, 4:22 PM #5
doesn't force speed alter the speed of the keys?? just a suggestion

------------------
So young so angry damn that rap music
So young so angry damn that rap music
2003-08-04, 5:07 PM #6
Swoop had pod racers, just changing around the physics a bit and some model changes would make somewhat of a racing mod....
2003-08-04, 9:35 PM #7
If it were only jk's keys etc that effected realistic vehicle handling in jk then you'd be in business. Unfortunatly jk lack alot of things such as trigonometry which makes modeling physics in it a difficult problem.

Also, if you havnt had a relativly decent exposure to vehicle physics then I think you will find it difficult to make the car handle even remotly realistic. You need to consider things such as weight distrubution etc

I started modeling the very basics of acceleration, and last time I was working on it I started steering. But I came to a grinding halt due to the constants of jk's math system.

Its possible, but to get pleasing results it wont happen over night.

------------------
Team Battle.
Team Battle.
2003-08-05, 12:32 PM #8
isent trignomitry all just complex calulations that are normaly hidden. evan the sighn and cosighns can be worked out mathimaticaly cant they? couldent you just... add your own trig codeing to a cog?

------------------
I am pjb.
Another post......
another moment of my life wasted.....
at least i made a level.
PJB's JK page's

-the PJB jedi rule book-
rule one, "never trust a bartender with bad grammar"-kyle katarn in JO

Rule Two, "Gravity is a crule misstress" -kyle katarn in MotS, and the alternatior MK I in AJTD
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2003-08-05, 6:59 PM #9
Hellcat's right. Simulating a real vehicle's physics requires a lot of special calculations.

For making tires and spinning them, I'd create tire things and attach them with 0x8. Then you can use SetThingRotVel() to make them spin, and SetThingLook() to make them turn when the car turns. I like to avoid working with keys if I can.

Quote:
<font face="Verdana, Arial" size="2">Originally posted by [SF]pjb:
isent trignomitry all just complex calulations that are normaly hidden. evan the sighn and cosighns can be worked out mathimaticaly cant they? couldent you just... add your own trig codeing to a cog?
</font>


If you care so little about what you say, what are you expecting other people to think? That's more than pathetic, it's an insult to your teachers.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

[This message has been edited by SaberMaster (edited August 06, 2003).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-08-05, 9:52 PM #10
Well I started off by trying to write a function that approximated trig values. But it wasnt accurate enough.

If I had more time I could give it another shot without the use of trig. However it wouldnt turn out nearly as good as your average racing game.

------------------
Team Battle.
Team Battle.
2003-08-05, 11:16 PM #11
Thanks for the info Hellcat and SaberMaster. I see that if anything, I would have to make it really 'arcadey'. That's okay. If people want a sim, they can go buy F1 Challenge 99-02.

Ok, so we have an idea on how to get the wheels spinning, but what about inertia? Can we accelerate/brake with different values, to give it a car feel? Seriously, if this much is possible, I'd consider porting over a lot of the work I'm doing to JK.



------------------
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

-Tazz
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

Tazz
2003-08-06, 2:54 AM #12
Inertia, momentum, acceleration, and etc are all easily possible in JK with template settings and verbs like ApplyForce().

Inertia, for example, is simply resistance to movement. So we can give the vehicle template a reasonable mass, and use ApplyForce() to get it started. The more force is applied, the more momentum the vehicle will have.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-08-06, 10:39 PM #13
I've always been rather suprised that JK has inertia, even some newer games don't have it.

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2003-08-07, 11:41 PM #14
Wow! I remember the ApplyForce() verb. As I recall, its most common use was for kickback on the big guns.

Well, it seems that a very arcadey type driver could be made. The only thing now is a .3ds import/export tool, so that I can take it in/out of 3do format.

*for those of you reading this thread who are hoping this will go down. Don't get your hopes up. It's just something I might tinker around with in my spare time.

------------------
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

-Tazz
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

Tazz

↑ Up to the top!