1. #1

    Custom vehicle, Issues

    Hi dear community, I have some troubles coding a car to be the main character.

    I use some big wheels to make a kind of monster car. Physic joints are set between these wheels and a metal objects to connect them to the car, this metal object is connected to the car with a physic joint to get a nice absorption. My problem is that the angular motor of the wheels physic joints are not working how they should. At first it's working fine but as soon as i change something in th configuration like position of wheels, car height, motor values or anything else, one wheel is turning in the good direction but not the other one, so I have a car which is constantly turning… I tried a negative value in the motor parameters, but the wheel stop turning… What is strange is that it's first working fine, then changing the motor direction. Any idea?

    I'll add some photos tonight if i don't have a good answear before !
    Share this post

  2. #2
    Hey maybe this will help you out a little. https://www.youtube.com/watch?v=6gEAKSuk0Uk Its a guide to car building 101.
    Share this post

  3. #3
    Thanks a lot man. I'll watch that soon. I think that my problem is a kind of glitch cause i had my wheels grouped to move them easier, and the problem was there : ungrouped, the 2 wheels are turning in the good direction.
    Share this post

  4. #4
    Not sure that I'm following u without pics, but if one motor is going backwards, just grab the pivot and just flip it 180.
    -MBX
    Share this post

  5. #5
    Ok so i made my car using the gatormania's tutorial. I modified ome little things but the car is working fine.

    Now i have troubles with steering wich is not working properly.



    I connected the left stick value to the Y angular rotation like in the vid. My wheel is now steering how it should, except the fact that the angular rotation associated to the steering is affected by the movement of the wheel while moving. The wheel is turning but the y axis is turning too so the movement is not at all what i want!
    Any idea ?

    Share this post

  6. #6
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195
    you'll need to subtract 1 from i think the lower limits on the angles, so if upper is 30 degrees the lower needs to be 29, this was discovered by a member here some time ago, but has long since been burred in the forum merger. not sure if it will help here but it definitely needs to be done when driving the upper/lower angles, you could also do the same for the other unused angles so they have some slack (may or may not help)

    FYI never put your joint strength any higher than it needs to be, it can play havoc with the simplest of things, less than 5 should always work well.

    you could check your x/y/z limits and make sure there is some small difference in the upper/lower values, it needs some margin of play, like anything in life. but may not be of any help, I've dabbled some with the physics and find them a little funky.
    Share this post

  7. #7
    The problem that you are having is because the target 1 and target 2 on the physics hinge are switched. I didnt realize the other day when i made that video that the #1 target needs to be the body or what ever the wheel attaches to. #2 needs to be attached to the tire or wheel. If this doesnt work switch it. But this is your problem.
    Share this post

  8. #8
    Thanks guys I'll try that soon
    Share this post

  9. #9
    Originally Posted by XxGATORMANIAxX Go to original post
    The problem that you are having is because the target 1 and target 2 on the physics hinge are switched. I didnt realize the other day when i made that video that the #1 target needs to be the body or what ever the wheel attaches to. #2 needs to be attached to the tire or wheel. If this doesnt work switch it. But this is your problem.
    i build alot of freeroam vehicles and target 1 has to be the axle and target 2 is always the wheel, so can confirm that this will fix your steering issues.
    Share this post

  10. #10
    Thanks everybody, steering is now working properly! I did what Dasraizer said and it is good i have some better reactions more realistic.
    Now i have troubles with brakes :
    The motor's angular speed and force of the wheel is linked to the gaz controler, so i have to find how to connect it to the brakes too...
    Share this post