Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,008 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
entity falling through terrain #395378
02/22/12 23:38
02/22/12 23:38
Joined: Mar 2011
Posts: 69
Munich (Germany)
LPF Offline OP
Junior Member
LPF  Offline OP
Junior Member

Joined: Mar 2011
Posts: 69
Munich (Germany)
i'm programming a little side scroller ,using some physix for actor and enemies and other elements

my problem is now, that i wanted to add some nice looking .hmp files as my ground... but as i tried the compiled level my actor fell through the terrain. i tried it several times again, with models other terrains and so on, but the only thing working were wed's level blocks...

my actor is a pXent_settype(my, PH_RIGID, PH_CONVEX); object the enemies too.

the terrain was PH_RIGID(with frozen movement)/PH_STATIC , PH_POLY/PH_CONVEX/PH_TERRAIN combined in all possible ways...

if you need more code please tell me... if necessary I can post the full game too.

thx for all help, LPF


..oooO .........
..(....)..Oooo..
...\..(...(....)..
....\_)....)../..
...........(_/...
...ICH WAR....
........HIER....
Re: entity falling through terrain [Re: LPF] #395380
02/23/12 00:10
02/23/12 00:10
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Register them as static and polygonal objects, see manual entry for pXent_settype.


"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: entity falling through terrain [Re: Superku] #395394
02/23/12 08:37
02/23/12 08:37
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
I had this problem yesterday. At first, try not to resize your terrain in WED. If this behaviour still occurs set the floor of the terrain as close as possible to z=0. This should do it.

Re: entity falling through terrain [Re: PadMalcom] #395407
02/23/12 11:11
02/23/12 11:11
Joined: Mar 2011
Posts: 69
Munich (Germany)
LPF Offline OP
Junior Member
LPF  Offline OP
Junior Member

Joined: Mar 2011
Posts: 69
Munich (Germany)
Ok, that solved the issue -> i had to place my terrain at z = 0 to get a proper collision detecion, but then it worked with all types PH_SATIC/PH_RIGID and PH_CONVEX/PH_TERRAIN/PH_POLY

thanks for help!


..oooO .........
..(....)..Oooo..
...\..(...(....)..
....\_)....)../..
...........(_/...
...ICH WAR....
........HIER....
Re: entity falling through terrain [Re: LPF] #395409
02/23/12 11:21
02/23/12 11:21
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
No problem, you don't even need to register the terrain in the physic engine when placing it on z=0.


Moderated by  HeelX, Spirit 

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