Jump to content

[HELP] Joint question/problem


Ywa
 Share

Recommended Posts

Hi. I am trying to make my own vehicle system with a simple ball joint. I ported a simple car model with tire attachments, I've created tires and jointed them to the car physics chassis, onto the tire attachment position with a pin of Vec3( 1,0,0 ). The car seems to move normally, but when you try to reposition the chassis of the car, the wheels and the car just spazz out, like in the picture. If I try to set the angles of the wheels, they also spazz out. What am I doing wrong/Any suggestions? Thanks in advance.

 

Part of the code (as pseudo-code):

LoadModel( Tire );
Tire.SetPosition( carTireAttachmentEntity );
Tire.SetMass( 1 );

BallJoint := CreateJointBall( carPhysBodyChassis, Tire, Tire.GetPos, Vec3( 1,0,0 ) );
SetBallJointLimits ( BallJoint, Vec3( 1,0,0 ), -180, 180 );

 

PS: I've tried disabling collision between chassis and wheels. No luck.

 

post-1240-016683200 1286888008_thumb.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...