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
2 registered members (AndrewAMD, Nymphodora), 485 guests, and 3 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
Page 1 of 2 1 2
Conitec's Vehicle Physics: tyres colliding #43740
04/03/05 13:26
04/03/05 13:26
Joined: Jul 2003
Posts: 1,300
Albury, Australia
James_Burke Offline OP
Serious User
James_Burke  Offline OP
Serious User

Joined: Jul 2003
Posts: 1,300
Albury, Australia
Hi,
I'm using Conitec's code for the vehicle physics (avaliable from the downloads page). I have replaced the standed 'buggy' with another model. The problem I have is when driving it becomes 'jumpy'. It seems that the tyres are colliding with the body of the vehicle. I would guess I've set it up wrong, because it works fine with the 'buggy', but maybe I've forgotten to set something?
The body of the vehicle (in MED)


The tyre of the vehicle (in MED)


The vehicle set up (in WED)


Thanks,
James

Re: Conitec's Vehicle Physics: tyres colliding [Re: James_Burke] #43741
04/04/05 04:48
04/04/05 04:48
Joined: Jan 2005
Posts: 330
USA
M
MatAllum Offline
Senior Member
MatAllum  Offline
Senior Member
M

Joined: Jan 2005
Posts: 330
USA
Collision type should be set to PH_POLY.

Do not let the tires of the car touch anything from the start. Double-check it in WED, and make sure there are no situations when the tires hit the body.

Re: Conitec's Vehicle Physics: tyres colliding [Re: James_Burke] #43742
04/04/05 06:24
04/04/05 06:24
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Not sure, if this helps, but the origin isn't precisely in the center of the tyre (wheel)!

Re: Conitec's Vehicle Physics: tyres colliding [Re: Pappenheimer] #43743
04/04/05 13:09
04/04/05 13:09
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
The origin for each wheel in MED should be exactly at the point where the axel connects to the wheel(on outside of wheel, axel side). If that doesnt fix it be sure that the tires and your chassis are all set within the same group - "phent_setgroup(my,2);" apply that for all wheels and chassis. Be sure your wheels are using spherical collision, it does not matter what your chassis is using. Finally, be sure that when your creating your wheels their verticie positions are right.

Heres a quick example:

Code:
  
//Put this in your chassis action after your chassis is applyed to physics engine
vec_for_vertex(temp,my,952); ent_create(mdl_tyrefr,temp,FRInit);
vec_for_vertex(temp,my,953); ent_create(mdl_tyrefl,temp,FLInit);
vec_for_vertex(temp,my,950); ent_create(mdl_tyrebl,temp,RRInit);
vec_for_vertex(temp,my,951); ent_create(mdl_tyrebr,temp,RLInit);

//An example of the wheels action, it is applied via its "my.x" position, so be sure your origin is right.
action FLInit
{
phent_settype(my, PH_RIGID, PH_sphere);
phent_setmass(my, massWheel, PH_sphere);
phent_setfriction(my, fricWheel);
phent_setdamping(my, 0,dampWheel);
phent_setelasticity(my, 0, 100); // bounciness
phent_setgroup(my, 2);
my.FL_wheel_ID= phcon_add(PH_WHEEL, you, my);
phcon_setparams1(my.FL_wheel_ID, my.x, vecUp, vecRight);
phcon_setparams2(my.FL_wheel_ID, vector(0,0,0), nullvector, vector(suspensionERP, suspensionCFM,0));
}



P.S - I would reccomend creating the wheels through script as shown above instead of placing them beside the chassis in WED. That way, its precise and instant. Just be sure to place a vert's at the end of each axel(in the middle...) and create the wheels according to the verticie positions.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: Conitec's Vehicle Physics: tyres colliding [Re: William] #43744
04/05/05 14:42
04/05/05 14:42
Joined: Jul 2003
Posts: 1,300
Albury, Australia
James_Burke Offline OP
Serious User
James_Burke  Offline OP
Serious User

Joined: Jul 2003
Posts: 1,300
Albury, Australia
Thanks all.
I've tried your code idea with no success. Could you explain a little more about the posistion of the wheels in MED?
Thanks,
James

Re: Conitec's Vehicle Physics: tyres colliding [Re: James_Burke] #43745
04/05/05 17:01
04/05/05 17:01
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
From what I can see, I am not completely sure what you are doing wrong. The best advice I can give is to try changing the position of the wheels in MED and see what happens. I'd really like to see this in action. If you cannot solve it please either upload your wheels and chassis models online, or send me a PM and I can help you via email(send it through email). I currently dont have anyway of hosting pictures online right now, so I cannot post a picture of how I line my wheels up.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: Conitec's Vehicle Physics: tyres colliding [Re: William] #43746
04/05/05 18:29
04/05/05 18:29
Joined: Jul 2003
Posts: 1,300
Albury, Australia
James_Burke Offline OP
Serious User
James_Burke  Offline OP
Serious User

Joined: Jul 2003
Posts: 1,300
Albury, Australia
Quote:

From what I can see, I am not completely sure what you are doing wrong. The best advice I can give is to try changing the position of the wheels in MED and see what happens. I'd really like to see this in action. If you cannot solve it please either upload your wheels and chassis models online, or send me a PM and I can help you via email(send it through email). I currently dont have anyway of hosting pictures online right now, so I cannot post a picture of how I line my wheels up.



Thanks William, I'll send you an email with a link to the models.
EDIT: What is your email? :P

Last edited by James_Burke; 04/05/05 18:32.
Re: Conitec's Vehicle Physics: tyres colliding [Re: James_Burke] #43747
04/05/05 20:23
04/05/05 20:23
Joined: Jul 2003
Posts: 1,300
Albury, Australia
James_Burke Offline OP
Serious User
James_Burke  Offline OP
Serious User

Joined: Jul 2003
Posts: 1,300
Albury, Australia
Never mind about the email address I sent it to you via PM.
Thanks,
James

Re: Conitec's Vehicle Physics: tyres colliding [Re: James_Burke] #43748
04/09/05 18:14
04/09/05 18:14
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Just curious how you solved the problem!

Re: Conitec's Vehicle Physics: tyres colliding [Re: Pappenheimer] #43749
04/10/05 06:12
04/10/05 06:12
Joined: Jul 2003
Posts: 1,300
Albury, Australia
James_Burke Offline OP
Serious User
James_Burke  Offline OP
Serious User

Joined: Jul 2003
Posts: 1,300
Albury, Australia
The tires need to be set to the right of the plane in MED
EG:
|
-------|-----
[---]
|
[---] = tire

Page 1 of 2 1 2

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