Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Martin_HH, TipmyPip), 1,279 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
PH_Slider as a car shock absorber? #64639
02/19/06 01:55
02/19/06 01:55
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
I am studying this constraint and wondered if this is a good option. My only concern is if it is added to the car chassis, how will the slider constraint act as a shock based on its sliding velocities vrs. the cars mass. The cars mass may not impact it at all, but if anyone knows this, I would appreciate your thoughts.

Thanks

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: PH_Slider as a car shock absorber? [Re: raiden] #64640
02/19/06 09:12
02/19/06 09:12
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
I found an easier solution, Marco added the 6th parameter in phcon_setparams2 to be like a shock absorber:
phcon_setparams2(frw_id,vector(-30,30,0),nullvector,vector(80000,200,0));


I found this setting to be nice and bouncy.

Thanks Marco

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: PH_Slider as a car shock absorber? [Re: raiden] #64641
02/21/06 21:40
02/21/06 21:40
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
A PH_WHEEL basically is a PH_SLIDER with a secondary axis. As raiden pointed out you can adjust the bounciness for PH_WHEELs. You could also add another PH_SLIDER on top of it, but then things might get way too elastic.

Re: PH_Slider as a car shock absorber? [Re: Marco_Grubert] #64642
02/27/06 15:26
02/27/06 15:26
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline
Serious User
indiGLOW  Offline
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
While this sounds exactly what I am trying to do, I can't seem to avoid the wheels falling of my car! Do you have to reposition the wheel via vec_set every frame or is the wheel position meant to be given by the contraint?

I have a car chasis with standard box physics. 4 bones where the suspension system would meet the wheel, which I am using for position of each wheel as well as suspension animation.

So any advice or example code on setting up a wheel and axle would be really helpful to me, as my wheels just drop off. Thanks and sorry for hijacking the thread.


The Art of Conversation is dead : Discuss
Re: PH_Slider as a car shock absorber? [Re: indiGLOW] #64643
02/27/06 17:15
02/27/06 17:15
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline
Serious User
indiGLOW  Offline
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
So I opened the plCar01.wdl and figured it out, sorry


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