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
3 registered members (Ayumi, NewbieZorro, TipmyPip), 13,888 guests, and 6 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
Strange behaviour and then simulation halts #189943
03/22/08 01:29
03/22/08 01:29
Joined: May 2007
Posts: 46
R
ribsribs Offline OP
Newbie
ribsribs  Offline OP
Newbie
R

Joined: May 2007
Posts: 46
Greetings!

I'm experiencing a problem, hopefully a newbie problem that can be easily fixed.

I have two entities registered on the Rigid collection, with different groupIDs.

One is a ball with mass, the other is a plate with zero mass.
When the ball touches the plate, the plate(which have an initial inclination of 45 degrees) quickly rotates to zero degrees, the ball rotates too in her's z-axis and the simulation halts.

If the plate have a different mass, the simulation works, but it meant to be a "fixed object" as referred in 3DGS manual. I don't want the plate to move

What am i doing wrong?


action Ball()
{
phent_settype(my,PH_RIGID,PH_SPHERE);
phent_setmass(my,50,PH_SPHERE);
phent_setdamping(my,0,0);
phent_setfriction(my, 60);
phent_setelasticity(my,80,1);
phent_setgroup(my,2);
}


action Terrain()
{
phent_settype(my,PH_RIGID,PH_POLY);
phent_setmass(my,0,PH_POLY);
phent_setdamping(my,0,0);
phent_setfriction(my, 10);
phent_setgroup(my,4);
}

Gravity (0,0,-386) and Groupselection (6) are set elsewhere.

Any ideas?

Re: Strange behaviour and then simulation halts [Re: ribsribs] #189944
03/22/08 12:08
03/22/08 12:08
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
the poly doesnt work that great use box ore somtingh other thing you cold try to decrease the speed of the ball thats going to the terain and set ph_check_distance = 1; to one ore somthing the problem will be a litle bit less suck
also you cold try somthing white ph_iterations = 1; btw(i could decrease a lot of fps)


"empty"
Re: Strange behaviour and then simulation halts [Re: flits] #189945
03/22/08 15:05
03/22/08 15:05
Joined: May 2007
Posts: 46
R
ribsribs Offline OP
Newbie
ribsribs  Offline OP
Newbie
R

Joined: May 2007
Posts: 46
Thanks for the reply.

I've tried your tips.
Each one individually and then all together, with the values you said, and again with extreme values.
The functions work because i can see whats happenning with every new set of values but the ball just sticks to the fixed plate.
In POLY the ball sticks to the geometry itself, and BOX touches the box boundaries and quickly sticks to the geometry.

Any more ideas ?

Re: Strange behaviour and then simulation halts [Re: ribsribs] #189946
03/22/08 15:55
03/22/08 15:55
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
3DGS physics entities react to regular entities, so the terrain action is not necessary


xXxGuitar511
- Programmer
Re: Strange behaviour and then simulation halts [Re: xXxGuitar511] #189947
03/23/08 17:42
03/23/08 17:42
Joined: May 2007
Posts: 46
R
ribsribs Offline OP
Newbie
ribsribs  Offline OP
Newbie
R

Joined: May 2007
Posts: 46
Hmm, works great this way! Thanks!
The idea was setting new friction and damping values according to the type of terrain below, that way a simple c_trace covers it. Thanks again


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