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
2 registered members (dr_panther, Ayumi), 702 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 coordinates of a physic terrain #353093
01/07/11 18:39
01/07/11 18:39
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline OP
Serious User
Widi  Offline OP
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
If i want to get the coordinates of a terrain in a physX level, all positions of all terrains are 0 (x=0,y=0,z=0).

See also this topic

Last edited by Widi; 01/07/11 18:40.
Re: get coordinates of a physic terrain [Re: Widi] #354235
01/16/11 23:36
01/16/11 23:36
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline OP
Serious User
Widi  Offline OP
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
bump

Re: get coordinates of a physic terrain [Re: Widi] #354273
01/17/11 13:12
01/17/11 13:12
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
A chunked terrain has no position. Its vertices have absolute level coordinates, so the position is 0.

Re: get coordinates of a physic terrain [Re: jcl] #354498
01/19/11 11:32
01/19/11 11:32
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline OP
Serious User
Widi  Offline OP
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Thank you for the answer. But my terrain is in my "terrain edit mode" unchunked. If i don`t use the physic (physX_open) i get the right coordinates of every terrain, dut as soon i set the physic engine, all my terraincoordinates return zero.
If this is NOT a bug i have already a workaround: I load my level new if i switch to my "terrain edit mode" with set the physic off (physX_destroy).

Re: get coordinates of a physic terrain [Re: Widi] #354506
01/19/11 13:59
01/19/11 13:59
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Terrain is always chunked in A8. You can use this workaround, but be aware that the terrain vertices have absolute level coordinates. So the terrain position does not add to the vertex positions. They behave as if the position were 0.

Re: get coordinates of a physic terrain [Re: jcl] #354508
01/19/11 14:17
01/19/11 14:17
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Widi, why don't you use my much simpler workaround (as suggested in the linked topic)? I think that's a nicer way than reloading the level.


"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 coordinates of a physic terrain [Re: Superku] #354517
01/19/11 16:28
01/19/11 16:28
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline OP
Serious User
Widi  Offline OP
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Thank for explain it.
@ Superku:
Yes, your solution is better, But i don`t know if you know my "DEFORM TERRAIN" from the last contest. This is a script that all should include in their project and there i don`t can handle your solution..

Last edited by Widi; 01/19/11 16:47.

Moderated by  jcl, Nems, Spirit, Tobias 

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