Hello!
Im trying to create a part in my map where the rider get chased by a car and the car is using Physics not the Object Position Event and the problem with that is that the road is curved and bumpy so the Car is getting flipped over and starts going way off course when trying to chase the rider which you can see in this youtube link:
/watch?v=YmToWGhfBwU
(I can't post link in topics)
And as you can notice if you watched the video the car is not working correctly...
I want the same effect without the car turning upside down or any other out of place manoeuvres.
The car is built out of:
4 tires combinded with 4 Physics Joints that makes the tires spin forward
1 Directional Force glued onto the car and its always aiming towards the rider
And if someone knows a better way to make this work please share that knowledge with me and if anyone can tell me what I have done wrong in the video, then that would be great too!
PS: Sorry if my English is a bit rusty![]()
That looks kinda ambitious
Maybe try enabling Lock to Driving Line for the car object? This will prevent the car wanting to go off course, and you could probably get rid of the Directional Force.
You may then need to take steps to make sure the car is always facing the player on it's Yaw axis, which you might be able to achieve by simply forcing it's rotation in the Object Position Event (maybe to match the player bike? If you Driving Line is straight, it should be less of a problem).
Let us know how you get on! I really like the scenario![]()
Not sure if this will work, but have you tried connecting the bike and car with a physics joint? with user defined setting allow to limit rotation while have unrestricted linear movement along only one axis. As long as this is a straight line chase I don't see this causing issues, except that if the car STILL tries to bounce around it may make the bike explode
You could also try setting the friction on the tires to zero and simply move the car with directional forces.
Maybe try enabling Lock to Driving Line for the car object? This will prevent the car wanting to go off course, and you could probably get rid of the Directional Force.
The car is actually locked to the driving line in the video. The Directional Force on the other hand was a good idea removing, I noticed that it caused more problems then it actually helped.
Although I still didn't get it to work, I'm going to try using a Object Position Event to match the players Yaw axis but I'm not so sure if I'm going to succeed with that because of my lack of Object Position Event skills![]()