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), 609 guests, and 3 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
PH_Poly Sticking Help Plz #100025
11/26/06 15:44
11/26/06 15:44
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
Can anyone suggest a reason as to why PH_POLY objects might be sticking together instead of bouncing apart? See image :-


If I change the type to PH_BOX or PH_SPHERE this sticky behaviour is not present, but of course the physics is not correct for a barrel.

Regarding Physics types, can PH_Cylinder not be added? Just think this would be an appropriate fast physics addition.

Thanks to anyone who can provide some help / suggestions would be much appreciated. Also maybe someone could take a look at this other physics cunnundrum? Get Mass

TIA


The Art of Conversation is dead : Discuss
Re: PH_Poly Sticking Help Plz [Re: indiGLOW] #100026
11/30/06 15:44
11/30/06 15:44
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
Hey Indiglow, Ph_cylinder is already there. Just set it as phent_settype.

As for sticking PH_POLY objects, I'll look if I'm getting the same behavior, but I think not.

Code:
 action barrel
{
my.shadow=on;
phent_settype( me, PH_RIGID, PH_sphere);
phent_setmass(my, 100, PH_CYLINDER);
phent_setdamping(me,60,60);
phent_setfriction(my, 50);
phent_setmaxspeed( my, 100, 100);
ph_setcontacts(vector(100000, 0,0), 0,0,0);
ph_setcorrections(40000,5);
ph_setautodisable(0.001, 0.08, 15, 0.3);
wait(1);
}



As you can see, I'm not using PH_CYLINDER for settype, but instead for the mass type. Somehow I'm getting better results with this. Normally though, you'd want both to be PH_CYLINDER.

I've found out that using a big model and a small mass, the physics engine will start to behave rather strange (on terrains using chunks, unsure if that matters), spinning fast and relocation the object, even falling through the terrain's ground. Increasing the mass fixed this for me.

Edit: If you ask me, PH_POLY is one big bug at the moment, I've tried setting it, it makes my barrel spin uncontrollable, it'll freeze suddenly and then spin slower. This all happens when switching on PH_POLY, also in combination with a terrain with Polygon active, but also with a terrain without Polygon active.

Cheers

Last edited by PHeMoX; 11/30/06 16:13.

PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
Re: PH_Poly Sticking Help Plz [Re: PHeMoX] #100027
12/16/06 14:39
12/16/06 14:39
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
Sorry for my late response Phemox, I have been without an ISP for a few weeks due to a change or supplier....im back now and will take a look at this over the next week.

Really appreciate your reply.

As for the CYLINDER I will def try this later tonight, as I couldnt find it listed in any manual or threads, hence I presumed it didnt exist....

Im notorious for not finding stuff thats under my very nose, so I will go back over the manuals just in case....

Thanks so much for your reply and I will respond in more detail once I have tested some things out myself.

Cheers


The Art of Conversation is dead : Discuss
Re: PH_Poly Sticking Help Plz [Re: indiGLOW] #100028
12/21/06 01:53
12/21/06 01:53
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
Hi there, you're welcome and it's okey. Keep us posted, I've got some problems with ph_poly at the moment too, perhaps a bug. By the way, which version are you currently using?

Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software

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