Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
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
1 registered members (AndrewAMD), 636 guests, and 4 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
POLY Falls through terrain #69458
04/02/06 19:46
04/02/06 19:46
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline OP
Serious User
indiGLOW  Offline OP
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
I've been playing around with some really basic physics stuff since 6.40.2 and im having some very strange effects.

Simple physics object falling onto terrain works only when set as BOX or SPHERE, set to POLY it falls through.

Any ideas why?


The Art of Conversation is dead : Discuss
Re: POLY Falls through terrain [Re: indiGLOW] #69459
04/03/06 01:21
04/03/06 01:21
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline
Member
raiden  Offline
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
Hi indiglow, I wrote this little barrel action and tryed it on a terrain with no issues. Make sure you have a block bounding box around the terrain, and I would wait to set gravity after all the entites have loaded, after level load:
Code:

action barrel {
phent_settype(me,ph_rigid,0);
phent_setgroup(me,2);
phent_setmass(me,1,ph_poly);
phent_setfriction(me,20);
phent_setdamping(my, 0,0);
phent_setelasticity(me,50,100);
}



Hope that helps you out.

-raiden

Last edited by raiden; 04/03/06 01:24.

"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: POLY Falls through terrain [Re: raiden] #69460
04/03/06 08:09
04/03/06 08:09
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline OP
Serious User
indiGLOW  Offline OP
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
Will try as you suggest, and move gravity set till after objects are setup.
Thanks, will post how I get on, cheers.


The Art of Conversation is dead : Discuss
Re: POLY Falls through terrain [Re: indiGLOW] #69461
04/03/06 08:22
04/03/06 08:22
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline OP
Serious User
indiGLOW  Offline OP
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
The only difference in your code to mine, is the following:

phent_settype(me, ph_rigid, ph_poly) <- I was also adding ph_poly here, this seems to have been the problem as now the objects do not pass through the floor.

Thanks for that Raiden


The Art of Conversation is dead : Discuss

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