Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
0 registered members (), 1,438 guests, and 5 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
PhysX, loadendless, and terrain_tile problem? #335829
07/30/10 22:23
07/30/10 22:23
Joined: Mar 2005
Posts: 134
J
jeffmorris Offline OP
Member
jeffmorris  Offline OP
Member
J

Joined: Mar 2005
Posts: 134
I modified a copy of "knights on wheels" code so that it loads a terrain and tiles it around the center tile. When the code starts, the car is on the center tile and if I drive the car to the next tile, the car falls off the tile. How can I fix the problem?

physX_open();
level_loadendless("ground.hmp");
terrain_tile(level_ent);
ent_createlayer("skycube+6.dds",SKY|CUBE|SHOW, 0);
pXent_settype(level_ent,PH_STATIC,PH_POLY|PH_MODIFIED);

Re: PhysX, loadendless, and terrain_tile problem? [Re: jeffmorris] #335834
07/30/10 22:49
07/30/10 22:49
Joined: Apr 2008
Posts: 650
Sajeth Offline
User
Sajeth  Offline
User

Joined: Apr 2008
Posts: 650
PhysX seems to have some problems with terrains and scaling... all terrains that are scaled fail for PhysX for me...


Teleschrott-Fan.
Re: PhysX, loadendless, and terrain_tile problem? [Re: Sajeth] #336083
08/01/10 14:57
08/01/10 14:57
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
You can not really drive a car to the next tile because there is no next tile. The endless level effect works with rendering imaginary images of the same level.

For endless terrain illusion, you must put back the car when it reaches a level border, in just the same way as the endless terrain script does it with the camera. The car is a physics object, so you must disable it before you can put it on a different position.

I havent tried it myself but this is the way it should normally work. Maybe you must overlap the tiles a little, otherwise the car could already fall over the border when its front wheels are outside the level border.


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