Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 177 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Physx auf Terrain! #452159
06/04/15 17:04
06/04/15 17:04
Joined: Jan 2006
Posts: 168
Germany, Hannover
DexLoomer Offline OP
Member
DexLoomer  Offline OP
Member

Joined: Jan 2006
Posts: 168
Germany, Hannover
Hallo,
ich versuche ein Auto mit Physx auf Terrain fahren zu lassen.
Das Ding fällt aber immer durch den Boden!

Beispiel:
car_terrain_test.zip

Hat jemand eine Idee?


A8-Com-v 8.47.1
Re: Physx auf Terrain! [Re: DexLoomer] #452161
06/04/15 17:11
06/04/15 17:11
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hi!

Don't scale terrains in WED, do that in MED right before placing it in your level via WED. PhysX doesn't support scaled terrains, that's why your car probably falling through it. And I just wanted to make sure, that you've registered terrain in physX via script.

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Physx auf Terrain! [Re: 3run] #452167
06/04/15 18:12
06/04/15 18:12
Joined: Jan 2006
Posts: 168
Germany, Hannover
DexLoomer Offline OP
Member
DexLoomer  Offline OP
Member

Joined: Jan 2006
Posts: 168
Germany, Hannover
Thank you for your answer,
i´ve not scaled the tarrain in WED. It is imported in original size.
I try to registred the terrain, with this action:

Code:
action actTerrain() 
{
	pXent_settype (my, PH_STATIC, PH_POLY);
	wait(1);
}



But the car still falls through the floor.


A8-Com-v 8.47.1
Re: Physx auf Terrain! [Re: DexLoomer] #452168
06/04/15 19:30
06/04/15 19:30
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
First of all, you don't need that 'wait' after the 'pXent_settype'.
You may try to use 'wait' right before registering the terrain in physX (just for testing purpose).

Try this one:
Code:
pXent_settype(my, PH_STATIC, PH_TERRAIN);

In addition, take a look at 'knights_on_wheels' which can be found at 'GStudio8/samples'.
It's a good example of how to setup level and vehicle physX.

My best regards!

Edit: I've found out what's causing the problem, you need to set terrain position to 0,0,0 (in WED). That's another limitation after not scaling the terrain. I just tested it with your demo, and it works. Good luck!

Edit2: and don't forget to increase Z position of your vehicle, cause otherways it will fly up to the sky laugh

Last edited by 3run; 06/04/15 19:51.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Physx auf Terrain! [Re: 3run] #452169
06/04/15 20:16
06/04/15 20:16
Joined: Jan 2006
Posts: 168
Germany, Hannover
DexLoomer Offline OP
Member
DexLoomer  Offline OP
Member

Joined: Jan 2006
Posts: 168
Germany, Hannover
Thank you for your tips, I'll try it tomorrow.


A8-Com-v 8.47.1
Re: Physx auf Terrain! [Re: DexLoomer] #452171
06/05/15 04:10
06/05/15 04:10
Joined: Jan 2006
Posts: 168
Germany, Hannover
DexLoomer Offline OP
Member
DexLoomer  Offline OP
Member

Joined: Jan 2006
Posts: 168
Germany, Hannover
Thank you very much, it´s work fine!
The problem was that I did not set the terrain on the 0,0,0 coordinates.

Best regards!


A8-Com-v 8.47.1
Re: Physx auf Terrain! [Re: DexLoomer] #452182
06/05/15 14:45
06/05/15 14:45

M
Malice
Unregistered
Malice
Unregistered
M



*Crack* "And 3Run knocks the ball right out the park folks. HomeRun!!!'"


Moderated by  HeelX, Spirit 

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