Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 491 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
gravity+physics does not work #236155
11/12/08 10:45
11/12/08 10:45
Joined: Oct 2003
Posts: 702
Z
zazang Offline OP
User
zazang  Offline OP
User
Z

Joined: Oct 2003
Posts: 702
Hi

I have a simple door model which I want to fall onto a terrain below and perform realistic physics based collision. The problem is that it passes through the terrain without any collision. Here is the code :-

var earthgravity[3] = { 0,0, -100 };
action physics_test()
{

while(!me) { wait(1) ; }

wait(-5);

phent_settype( me, PH_RIGID , PH_POLY );
phent_setmass(my, 15 , PH_POLY);
ph_setgravity( earthgravity );

}


Any ideas why it would not collide with the terrain ?

Thanks a lot.

regards
zazang




I like good 'views' because they have no 'strings' attached..
Re: gravity+physics does not work [Re: zazang] #236160
11/12/08 11:15
11/12/08 11:15
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
PH_POLY donīt work correct try PH_BOX. And you need a hollow Block around your level.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: gravity+physics does not work [Re: WretchedSid] #236904
11/17/08 02:51
11/17/08 02:51
Joined: Oct 2003
Posts: 702
Z
zazang Offline OP
User
zazang  Offline OP
User
Z

Joined: Oct 2003
Posts: 702
Thanks !...I used c_setminmax to set the model to its size and used PH_BOX and it worked...however we cannot add a skybox to the game now...How does the skybox affect physics behaviour ?

regards
zazang


I like good 'views' because they have no 'strings' attached..
Re: gravity+physics does not work [Re: zazang] #238246
11/25/08 22:17
11/25/08 22:17
Joined: Aug 2008
Posts: 61
Neurosys Offline
Junior Member
Neurosys  Offline
Junior Member

Joined: Aug 2008
Posts: 61
thats wierd... im using skybox and makeshift gravity. Not a hollow box but the actual zbuffer rendered sky. I figured when I use physics i would need to lose my piddly gravity scheme and use the physics gravity but I dont want to lose my perfect sky!


See more code and crap @ www.neuroticnetworks.com

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