I want to make a car move forward. I use a OPE to make it go, but when it comes to a slope it keeps going forward and is floating! How can I fix this? Also, if I glue headlights or police lights to a car and I make it move forward, it goes sideways! Will someone please help me, thank you!![]()
I'm not too advanced with the editor and I'm sure someone will give you a more detailed answer but I'm going to try help you the best I can! Have you got it to lock to the driving line? That sounds like it may help youOriginally Posted by GBacon28and I don't know about the car floating, change some physics options. Maybe it is stuck to a X axis and needs to be X and Y or something. Good luck!
P.S. Can you put all of the help threads into one, It may be classed as spam in these forums
,Venomz.
As for your other posts, they are very complex but just hang in, I'm sure a more experienced track creator will be here shortly to help you on them! Good luck yet again!, Venomz.
slopes aren't easy, you will need to mess around with the anglesOriginally Posted by GBacon28
for glueing stuff always select the original object first and add on the other stuff(the glue joint is base on first selected object
If you want the car to follow the ground shapes, you have to move it with physics and not the object position event.
If you just want it to go forward and follow the hills. Few alternative solutions could be;
1.
- Glue a directional force to somewhere between the front wheels. Test which works better. Global or Local direction for the force.
- If the car needs to stop at certain points, just put area triggers, timers etc... to control the directional forces force value.
- For extra effect. Put the angular motor on on the tires joints and derive the value from the directional forces value so they spin only when its on.
2.
- Just move the car with the wheel motors
- To prevent it from turning to a wrong direction, put a joint between the car and any stationary object. Lock the rotation related to turning, but make sure everything else is not restricted.
- Remember to align the pivot to the car. You do it by first putting the snap grid to the car from the editor settings menu. Then select the pivot and tap the stick around the grids center. Then it'll be perfectly aligned.
3.
- Just put a slider joint between the car and any stationary object
- Align the joint pivot to the car like in previous example.
- Prevent turning as you would in 2.
- Make some script to get a number for the distance placement of the car. Either a linear or curved data source with ? interpolation speed or something else.
- Place that value to min and max on the correct linear axis on the slider joint.
Oh! and when you glued some random lights to the car and the car then went sideways. That's because gluing those additional objects turned the pivot point of the glue group to wrong direction. You should always realign the pivot after adding stuff with the method from 2.
Oh! Totally forgot about the one detail. Moving with physics only work when the objects are inside the physics bubble. OP events work anywhere :/ Doing this with that isn't impossible but its certainly more difficult as you would need to either carefully script the rotation in certain points or in a certain way through the cars route. If it has to be with OP, just place the cars on flat surfaces and it's easy![]()
Thanks guys! After all the hard work and support from you guys, I'm finally more advanced and way more talented at the editor!