-
Posts
2,419 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by lo-fi
-
There's only really one way to do this: Spring deflection against spring strength. I've given this a lot of thought. Any method that uses "vessel" mass is doomed to failure. Even finding all the "wheels", calculating their positions and orientations, then dividing that all up would be a huge task. OK for a "known" design, but in sandbox form we need a generic mode. Springs are usually measured in kg/mm deflection, so that ought to give you somewhere to work from. It won't be perfect, and there are some edge cases depending on how you've handled maximum deflection (bump stops), but it's the best and only shot you've got of handling this one.
-
Honestly, it's hard to say. Shadowmage is making incredible progress creating a simulation of a wheel (far better than the garbage Unity is currently shipping with), but there's a fair amount of testing and finessing to be done before putting it out into the wild. Progress has been rapid, so at this stage I think we're talking more weeks rather than months kind of timescale. Hehe. Sorry, Temeter, couldn't resist
-
If there's one thing I've learned, it's that you can't cover all the bases. Check the ray (or sphere) for rigidbody; if it's null or kinematic, ignore. Otherwise, apply one equal and opposite to the suspension. Job done. If people do stupid stuff, that's their problem. Granted, there's an annoying issue with skinny wheels and sphere casts, which I'll think on.
-
Wow guys! I treat tracks as the sum of their wheels with the average rpm of the grounded wheels giving the track speed. No special consideration is needed for the wheel colliders, so Shadowmage's version will work perfectly well. Sprockets and idlers are treated as road wheels with no suspension travel.
-
There were a lot of people who used KF fine in previous versions of KSP 64, so I see no reason why there should be an issue going forwards. I used to offer no support for X64 because squad didn't (and it was flaky at best), but made no effort to stop people using it. My own experience suggests that 1.1.X is about as stable as a 6' jello tower, whether 64 or 32, so mileage may vary.
-
[WIP] KerbinRover Off-road vehicles
lo-fi replied to TiktaalikDreaming's topic in KSP1 Mod Development
Making a plugin to do that is simple, and I've actually done so. What I found isn't simple is dealing with the jump between "on rails" and otherwise, and persistence issues on reload :/ -
[WIP] KerbinRover Off-road vehicles
lo-fi replied to TiktaalikDreaming's topic in KSP1 Mod Development
Hey cool. I have made some BV202/206 tracks but never finished or released them. The biggest problem is that they're an asymmetric design, which of course doesn't play well with rotational symmetry. Luckily I have solution for that, but it's kinda complicated. You're very welcome to take what I've done and mess about with/finish it, if you like? Another challenge is the way the Haglunds things steer with the joint in the middle, of course. -
Yep, should be up to date:) I guess we ought to be looking at how to marry up my joint model with your existing code, as you've done a lot of the work already for the grip model. I'm far too tired to think about much else now, though, so I'll get back to you with a fresh head tomorrow. Looking forward to a productive weekend I wouldn't worry too much about the KSP specifics just yet, I'd rather make sure it all works well in plain old Unity before heading that direction. I was thinking of a PartModule that looks for wheel colliders in a part, strips them off and replaces them with an instance of our version on each GO that had one applied. The rest is just a case of modifying KFModuleWheel to look for our colliders, and everything will work as before in those modules, provided we've exposed the same stuff. You have to strip off the buggy U5 wheel colliders because they will activate regardless of whether any other components of scripts are even aware of them! They are useful for a placeholder for "hey, we need a wheel here", and can carry over some settings from them, like the suspension travel, wheel radius etc. for each individual wheel in a part. Setting all that up in a config file/MM patch would be hell with the lid off!! If the grip and torque can be on the way to getting implemented, I think we'll be doing well!