so i got a tank that is using hinge constraints to move but if you were to go up a sharp edge, for example a default spawn point then it would bounce up.
i saw someone make one that doesnt do this as shown in this video
anyone know how they did this? or another way to recreate it (springs do not solve the issue)
Seems like you’re relying on the native physics engine to power the movement on your tank, I would recommend taking inspiration off of all those free model cars and use raycasts and more rigid movement constraints as things that power your tank movement
if you need some help on that, I can’t provide it here, but you can always make another thread!
going to be very hard to find anything free model that doesnt use hinges/springs with hinges/springs with cylindrical constraints
most free model cars will be using the physics engine to move it
and wdym by raycasts and rigid constraints, rigid constraints are just like welds (not weld constraint) and if you mean raycast suspension that is horrible
the free model jeep created by x_o has a pretty jolly tire system
if you look deep enough in the scripting you could see that the tires are adjusted depending on the height of the terrain and there is a raycast at the center of the vehicle determining the force of a certain bodymover to keep the car propped up
I’m sure you could use the same system or some sort of variation that doesn’t end up too buggy
if you have questions you could always ask me, someone else, or make an entirely new help thread if this one has been abandoned!
there is a lot of bugs with it, such as it uses raycast suspension (like i said not great), i do not want suspension or any kind with these. it also has a bug with the friction and a lot of stuff breaking when you get out
such as if you push it slightly it starts spinning without stop, if you get out on a ramp it just floats there it wont fall down. the movement isnt really realistic either, im trying to go semi realistic and if my tank slips and slide everywhere like the jeep that would be annoying
that’s why I sggested to make some sort of variation, I find the idea itself pretty neat but the implementation weird as hell
some sort of raycast/ground check with bodymovers or movement constraints would be more viable than the builtin physics engine in my opinion
i did that before, it was really bad spent over 10 days on it. i do not like raycast suspension (which is what the jeep does, raycasting then moving a wheel is exactly what suspension is). and like i said before i dont want anything like that, i dont want the wheels to move like that. im trying to recreate what was shown in the second video
apologies, I must’ve completely missed the memo
I don’t really see the difference between the two clips, both of the wheels are pretty rigid, and it seems you’re comparing a fast moving tank in a sudden rough obstruction to a slow moving tank that’s moving carefully on a single inclination, and it seems like they both bounce either way
I might need a bit more elaboration on what you’re goal is here, all I’m getting from here is that you want the wheels to independently move and adapt to terrain instead of all of them moving as a solid mass?
I am pretty stupid when it comes to getting peoples intentions so more detail would be appreciated ^-^
I get the problem much better now! thank you for the better frame of reference
first thing that comes to mind is a subtle downwards force on the tank, not enough to effect the speed but enough to mitigate the bounce a bit
I don’t know how it would work with steep hills, but maybe you can detect whether the tank is too off the ground and then you could apply the force in the location where you detect the height discrepancy
i went all the way up to 1 million force downwards on the tank and it still bounces, and i went to 10 mil and it didnt bounce but i could no longer turn and when going up an edge it would slow down (dont want that)
interesting
trying my best to think of other methods
perhaps a very subtle align orientation constraint could work
it would make the overall orientation of the tank not go too far
then I would try to contact other creators of other equally well working tank systems
if that doesn’t work I would wait for this thread to gain some traction
i did it a long time ago with spring constraints (managed to make it go up without slowing down, but that was all with the springs) but i dont really what that since it caused a lot of bugs
when spawning it would sometimes spawn in the air and get flung
believed to be the main cause of lag in the gmae
some other stuff i forgot
if you have any way to fix this stuff then i could go back to spring constraints
no, just making the springs super strong is just like having no springs at all
spring constraints seem like the most viable solution
for the flinging, I think a good solution would be anchoring for a bit, or freezing it in place with some constraint until you set a network owner and then remove it
I don’t know about the lag stuff, seems like the lag was removed once you removed the springs in particular
but /shrug
try to stick with springs, only look for other solutions as a last resort
ill try but im not 100% sure about the springs lagging out the game since the game i was using it in had so much old scripts and thats why im remaking everything
it could also be the movement or client scripts itself causing the lag, but most of the lag was on the server. usually 10-15 tanks cause it, and there will be way more than that