Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by dr_panther. 05/18/24 11:01
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
3 registered members (dr_panther, Ayumi, 1 invisible), 708 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
get position of terrain #353084
01/07/11 18:11
01/07/11 18:11
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline OP
Serious User
Widi  Offline OP
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
In my terraineditor i want to get the position (x,y,z) of all my terrains. If i don`t use the physic (don`t do physX_open) then all works great, but if i use the physX all 3 parameters of all terrains are zero (x=0,y=0,z=0). Also destroy the physic don`t work and to unregister the terrains from the physic don`t work. how can i get these coordinates if i use the physX?

Re: get position of terrain [Re: Widi] #353086
01/07/11 18:19
01/07/11 18:19
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I've experienced this behaviour (bug?), too.
Workaround: Have a look at the ackphysx code, copy the physX_open and physX_level_load into your code, change the latter function as follows:
When ent_type == 4, you have a terrain. Now save its xyz-position somewhere (skills?) and register it afterwards.

Better solution: File a bug report.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: get position of terrain [Re: Superku] #353092
01/07/11 18:35
01/07/11 18:35
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline OP
Serious User
Widi  Offline OP
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Thanks, i will report it in the bug forum.


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