Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, TipmyPip, tomaslolo), 788 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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 | 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