Gamestudio Links
Zorro Links
Newest Posts
Fun Arcade Car Physics (nfs style)
by Ezzett. 08/02/26 21:11
ZorroGPT
by TipmyPip. 07/31/26 22:56
Wolfram Mathematica with Zorro
by TipmyPip. 07/30/26 02:07
What are you working on?
by rayp. 07/24/26 22:58
Z9 getting Error 058
by madpower2000. 07/22/26 14:01
New Zorro version 3.11
by jcl. 07/21/26 13:42
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 2,995 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Fun Arcade Car Physics (nfs style) #489568
07/25/26 00:35
07/25/26 00:35
Joined: Jul 2008
Posts: 2,115
Germany
rayp Offline OP

X
rayp  Offline OP

X

Joined: Jul 2008
Posts: 2,115
Germany
Hi.

Working for a few weekends on a simple racer game now. Im sick of zombies atm... laugh
Iam a big need for speed hot pursuit fan and try to get the feeling of those games, starting from scratch ( no NVidia PhysX used ).
[Linked Image]
Framerate is locked to 60 (renders very fast).

For testing i use the hot pursuit tracks. It's very funny to prog on such great models.
[Linked Image]

The cars use a invisible, simple model for collision. The visible mesh is adjusted to the slope of the ground surface,
moved on hits/crashes etc. Its position is always smoothed to the invisible GLIDE-collision entity. Tires and exhaust are
single models. If the car is in the air, wheels are moved up and down (springs, only per axis atm).
Iam very happy about how stable the car movement is now. Please check out the video at the bottom of this post.
[Linked Image]
Driving upwards slows down, downwards speeds up. Crash/bounce/push detected via c_trace's.

Extreme test (both models visible, box model works well atm. tested on blocks, terrains and models):
[Linked Image]
Each car can have unique values like: speed, steer speed, shift speed, rpm, grip, tire size, tire roll, NOS, turbo, spring size.......
Car models and values are stored in a struct.

The intern path system did not work for me so i came up with my own system. It came along very well i have to say.
Nodes are dynamic, can be moved and edited in realtime while entities using the path.
Node infos: current nr, next nr, radius, value1, value2, value3, value4.
Cars perform a stuck-check and can respawn at the last reached node position.
I made a nice little editor for the new path system:
[Linked Image]
https://youtu.be/62amlng-ciY

Editor update (nodes connected with lines, now in red):
https://youtu.be/sHb90mSJefY




WIP - enjoy laugh

https://youtu.be/ax9g1cV8JMA



Update minimap for player and each enemy, created from the the new path-nodes:
[Linked Image]

Greets!

Last edited by rayp; 07/26/26 21:44.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Fun Arcade Car Physics (nfs style) [Re: rayp] #489574
Yesterday at 21:11
Yesterday at 21:11
Joined: Aug 2003
Posts: 127
Deutschland
E
Ezzett Offline
Member
Ezzett  Offline
Member
E

Joined: Aug 2003
Posts: 127
Deutschland
Wow, this looks really fun. I think I spend hundreds of hours with NFS High Stakes, which also had the tracks from Hot Pursuit. There was also a large modding community in the following years with lots of custom tracks and cars.


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1