Vehicle Joints steering problem

Hi
Currently I working on my new car of rigid body joint’s 6DOF. Seems good. But my plan of steering front wheels not :frowning:
>CAR.BLEND<
The front wheels copy the rotation from object between them (“track”).
I think the idea is good but what’s wrong with this script is?

Thanks for any Ideas :o

It is not real good solution but you can put the script logic bricks on tap.The wheels don’t spin as much then.

here ya go,

:smiley:

http://www.pasteall.org/blend/24211

you may want “spindles” that copy the rotation,

and RBJ your wheels to that,

this way they can copy the rotation, and still turn :smiley:

ok here ya go,

added spindles,

http://www.pasteall.org/blend/24213
this one moves and steers

edit:Need to look through all your set up, there is something set wrong

@ @BluePrintRandom
sorry but I can’t open that link I mean pasteall.org. I reset 3 times my router,use IE;Chrome;Opera and nothing I don’t have idea why :frowning: . You also?

I am having issues uploading to BA, so I pasteall.org/blend pasted it,

No I can download it, just can’t upload it to BA,

I’ll try and shoot you a example, if my midget gives me a minute :smiley:


import bgefrom mathutils import Vector
cont = bge.logic.getCurrentController()
own = cont.owner
scene = bge.logic.getCurrentScene()
target= scene.objects['Target']
Pos=own.worldPosition.copy()
X = target.worldPosition.copy()
X.z = X.z
distance = own.getDistanceTo(X)
vec = own.getVectTo(X)[1]
X1=own['X1']
force = vec * X1*distance
m1  = own.worldOrientation.copy()
m2  = target.worldOrientation.copy()
dif = Vector((m2 * m1.inverted()).to_euler())
x = dif.magnitude
force1 = own['Force']*own.mass
own.setAngularVelocity((0,0,0),0)
own.applyTorque(dif * force1*x, 0)
force.z = force.z+own.mass*9.8
own.setLinearVelocity((0,0,0),0)
own.applyForce(force/distance, 0)



this code is using “Target” you can easily change it to “track”

next, each tracking object needs properties X1 and Force,
X1- Torque Track To
Force - Force Move To

So X1 -should be 0

Force should not be 0

(this script is for copying position OR orientation using forces and/or torque,

Need to look through all your set up, there is something set wrong

You’re right something wrong is with set up. Works but very strange, the wheels is not straight. Hmm I’ll think about repair that.
>File<

Thanks for this Idea of usings forces torque

???,??? ?????,??? ? ??? ??? ???NIKE SOLARSOFT SANDAL(??? ???) ??443962600 ??? ??? ??? ??? ??? NIKE SOLARSOFT SANDAL 443962610,??? ??? 90? ???,??? ??????,jeremy scott ?????,mcm ??? 1946???,??? ?????,??? 90???,adidas ???? ???: ??? ??? ??? ??? ???