Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Baklazhan, Ayumi, Hanky27), 1,387 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[Contribution] Car Physics #451146
04/29/15 05:26
04/29/15 05:26
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Hey Guys!

This is just a small one laugh
Someone on the forum asked me to look into the car physics for them, so I spent the last several hours looking into getting this to work as best as I could.

I couldn't get the Ai to work, but if anyone wants to upgrade it that would be awesome laugh

Click here to download it
Video: https://youtu.be/6grJdFUP54g

Click to reveal..






It uses the A8 physics Engine ackphysx.h
There is a working example to play with right out of the box. Just open sed or wed and run grin

Enjoy!

Last edited by DLively; 04/30/15 00:11.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: [Contribution] Car Physics [Re: DLively] #451148
04/29/15 06:30
04/29/15 06:30
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
It gives too crashes when I start 'main', first 'can't open plane.hmp', second one is 'wrong physX type: a5/a6 map' (probably cause level was compiled without 'create meshes' flag set in the map compiler). But I edited the 'main' level, just added a flag block to drive the car on, removed plane and recompiled the map, and it works pretty good! Thank you for this contribution!

But I wanted to tell you about that this car template already was converted into the A8 and integrated into the engine (that's why all 'car_init', 'car_input' and all other 'car_' functions are highlighted).Take a look at 'car.c' script wink Plus there is an example how to use car template that A8 already has, in samples there is 'knights_on_wheels' example. That's why I think not much of users going to use this contribution, but it was a huge experience for you while you converted it into A8 I guess! So it was worth a try anyway!

Any ways, keep contributions up!

Best regards


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: [Contribution] Car Physics [Re: 3run] #451149
04/29/15 06:45
04/29/15 06:45
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Thanks for checking it out 3run!
yes I am re-uploading a new version now as I fixed a few things myself.

This is the A8 car template laugh

Edit: The crash is from the colormap I think.. Without it the terrain complains it doens't have it a few times with error messages - With the file the engine complains once grin

Didn't know thats what cause the old physics error. I was getting it in another level (which I pulled from the template), but not the main level (which I created).

Last edited by DLively; 04/29/15 06:53.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: [Contribution] Car Physics [Re: DLively] #451197
04/30/15 00:28
04/30/15 00:28
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Updated!

Fixed the crash at game start
Gave the car a shadow
Added a driver to the car
Tweaked the cars settings
Added the Ai Car - Had it move a few feet.

laugh

Last edited by DLively; 04/30/15 00:30.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: [Contribution] Car Physics [Re: DLively] #451200
04/30/15 01:31
04/30/15 01:31
Joined: Jan 2014
Posts: 77
USA
sitrep Offline
Junior Member
sitrep  Offline
Junior Member

Joined: Jan 2014
Posts: 77
USA
Hey 3Run,

thanks for your input, but car_props.h just don't work in A8, or at least for me...following that link that you posted and using the templates in A8.

no semaphor, no race starting, no car Ai's moving...


Hey Dlively, i'll check out your latest demo thanks!

Re: [Contribution] Car Physics [Re: sitrep] #451202
04/30/15 01:39
04/30/15 01:39

M
Malice
Unregistered
Malice
Unregistered
M



carprops.h should already be in the 3dgs A8/template/code folder.

Also in another thread @3Run already stated he will look at the issues tomorrow. I have no doubt he can solve this.

Please have a little patience
Mal

Last edited by Malice; 04/30/15 01:40.
Re: [Contribution] Car Physics [Re: ] #451210
04/30/15 04:01
04/30/15 04:01
Joined: Jan 2014
Posts: 77
USA
sitrep Offline
Junior Member
sitrep  Offline
Junior Member

Joined: Jan 2014
Posts: 77
USA
Roger that Mal.

Yes, I had copied carprops.h into my proj. folder. (that got my r mirror to work, but not the race actuals)

Ok. Will stand down for now.

Really appreciate this engine and you'all !

Last edited by sitrep; 04/30/15 04:09.
Re: [Contribution] Car Physics [Re: sitrep] #451226
04/30/15 11:57
04/30/15 11:57
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I've posted AI there in the original thread!
bug? Lite-C car template in A8

DLively@ set player model as a genius for the rear mirror view, so he will be invisible there, plus lower mass offset center (Z coordinates), so vehicle doesn't roll over when you try to steer.

Greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: [Contribution] Car Physics [Re: 3run] #451256
04/30/15 21:37
04/30/15 21:37
Joined: Jan 2014
Posts: 77
USA
sitrep Offline
Junior Member
sitrep  Offline
Junior Member

Joined: Jan 2014
Posts: 77
USA
Hey you guys,

thanks !!!

Really appreciate your posts and suggestions.

when I get up to speed I look forward to contributing also.


Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | 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