Ywa Posted October 12, 2010 Share Posted October 12, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.