Hello dear developer community! When creating the car, I came across the fact that it is extremely difficult for it to move through very small obstacles, it cannot even pass an object with a height of 1 stud, which will cause huge problems in my game.
I had the idea of creating Wedge, but this is a practical reworking of everything and is, in my opinion, a very irrational solution to the problem. I’m attaching a gif of what it all looks like:
https://gyazo.com/14511b5f9a8a6eb6282aeb4140d2cc7e
I will be glad to hear everyone’s opinion!
What do you want to achieve?
If you want your car to ignore small obstacles, how about setting hitbox for the car?
If you want your car to run beyond the obstacles, how about setting position of the car when touched.
I want to create a car that can pass small obstacles, but if it cannot pass 1x1 part, then there is a significant problem with these ambitions.
I would really like to make a hitbox, but the car in my game will be built by the player in the future, so it’s impossible to calculate the hitbox somehow. What can you suggest about touching?
So this car come with a script?
You could add to the MotorMaxTorque. A simple fix would be to add ramps like on the other side. You could make the ramps transparent. Possibly, rubber wheels would help also.
Can you tell us more? I like your idea, I would like to try it
When wheels detect a small step, modify their position so that they are above the step. (If you want them to work as the movie.)
Well in your video, you have white ramps on one side and no ramp on the other side. You could do that and just make that ramp transparent but still can collide. The MotorMaxTorque is one of the motor settings. You have it set to 5000 by the tutorial video.
I was talking about them in the first message, I don’t want to use them, because then I’ll have to use and install them everywhere, it’s extremely inconvenient.
The question is, how best to move them and check for touch, but I can have more than just these objects.
Also extremely easy and working.. I did say add more to the MotorMaxTorque also.
I agree with that, but if they give me a map, I’ll have to spend a lot of time arranging all the wedges.