Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (ozgur, Ayumi, VHX, monarch), 1,161 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Hang on physics #284659
08/14/09 13:15
08/14/09 13:15
Joined: Jun 2009
Posts: 18
3
3DGSDutch Offline OP
Newbie
3DGSDutch  Offline OP
Newbie
3

Joined: Jun 2009
Posts: 18
This is my Ferris Wheel model:



The seats (Gondels) needs to be hang on physics. Without physics they hang correctly; But when i slowdown the Rad (whole thing that rotates) the seats (gondels) stopped at the same time. But in reality the seats (gondels) need to swing slowly as in real.

I think most of you know what i mean. Basicly, i want to know how to script the Seats(Gondels) as in reality!

My code as far now:

Code:
// Entitys
ENTITY* rad;
ENTITY* ball;

// Vectors
VECTOR ball_force;

action act_gondel()
{
	ball = me;
	ph_setgravity (vector(0, 0, -386)); // set the gravity
	phent_settype (ball, PH_RIGID, PH_BOX); // set the physics entity type
	phent_setmass (ball, 3, PH_BOX); // and its mass
	phent_setfriction (ball, 80); // set the friction
	phent_setdamping (ball, 40, 40); // set the damping
	phent_setelasticity (ball, 50, 20); // set the elasticity
		while (1)
	{
		phent_addtorqueglobal (ball, ball_force); // add a torque (an angular force) to the ball
		my.scale_x = 6;
		my.scale_y = 6;
		my.scale_z = 6;
		
		wait(1);
	}
}



Re: Hang on physics [Re: 3DGSDutch] #284671
08/14/09 13:48
08/14/09 13:48
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
This is a know problem in ODE. Use Newton or PhysX (Soon) instead.

Re: Hang on physics [Re: Cowabanga] #284674
08/14/09 13:51
08/14/09 13:51
Joined: Jun 2009
Posts: 18
3
3DGSDutch Offline OP
Newbie
3DGSDutch  Offline OP
Newbie
3

Joined: Jun 2009
Posts: 18
How does Newton works? Of that other Physics plugin? And where to get it / is there an tutorial or example ?

Re: Hang on physics [Re: 3DGSDutch] #284681
08/14/09 14:34
08/14/09 14:34
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
it should be able to work if you set up the joints correctly, ODE performs very well if you set it up right, as for telling you how to set i up, i cant at the moment... just read up on 'joints'

Re: Hang on physics [Re: darkinferno] #284684
08/14/09 14:40
08/14/09 14:40
Joined: Jun 2009
Posts: 18
3
3DGSDutch Offline OP
Newbie
3DGSDutch  Offline OP
Newbie
3

Joined: Jun 2009
Posts: 18
Where can i found "Joints" to read? On the ODE website? On this forum? I can't found it. Does someone has a link ?

Re: Hang on physics [Re: 3DGSDutch] #284686
08/14/09 14:55
08/14/09 14:55
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
look in the 3dgs manual under physics....

Re: Hang on physics [Re: darkinferno] #284696
08/14/09 16:18
08/14/09 16:18
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline
Member
XD1v0  Offline
Member

Joined: Jun 2008
Posts: 151
Ukraine
Quote:
Where can i found "Joints" to read?





A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: Hang on physics [Re: XD1v0] #284697
08/14/09 16:23
08/14/09 16:23
Joined: Jun 2009
Posts: 18
3
3DGSDutch Offline OP
Newbie
3DGSDutch  Offline OP
Newbie
3

Joined: Jun 2009
Posts: 18
Yes thanks, but i found it already. Bit i don't know how to SCRIPT the physic correctly. I think i need to use PH_HINGE for the cars / seats.

Re: Hang on physics [Re: 3DGSDutch] #285773
08/20/09 00:55
08/20/09 00:55
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
Hi, I´ve the reason for you problem with ODE, pm me.

http://www.youtube.com/watch?v=suD6qCIMUYo


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P

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