Hey everyone, apologies for the lack of GearBlocks updates recently. So for now I’m still sticking with Unity 4.6, I really need to get back to making actual progress on the game! In summary, I’ve got fixes / workarounds in hand for most issues now, but there are still a couple of show stoppers (namely velocity drives and stability at high angular velocities). Hopefully they’ll be able to fix this one. I still can’t get these to work at all, I submitted a bug report to Unity but haven’t heard back so far. I found the fix was simply to ensure there is a small delta between the min and max. I use angular limits to force a hinge joint to a particular angle by setting the limit min and max values both to that angle, but this stopped working properly in Unity 5. I also found I had to multiply my torque values by a factor of around 50 to get similar behaviour to that in Unity 4.6. The workaround is to explicitly wake up the rigidbodies when turning the motor on. When switching on a joint motor, there is a bug in Unity 5 that means the connected rigidbodies don’t get woken up, and so they don’t start moving if stationary. I tried playing around with these settings but I couldn’t get it to be stable, more experimentation is required, but this could be a real show stopper. With the same settings in Unity 4 this was rock solid. On the subject of fast spinning stuff, despite the aforementioned small time step (and also a high solver iteration count), gears / axles spinning a high rpm now become unstable and start wobbling around. Not much I can do about that though, as I need the smaller time step for accuracy with fast spinning stuff. physics update) time step I’m using (5ms vs. After some experimenting, it seems this behaviour is worse with the small fixed update (i.e. Another option would be to disable collisions altogether between neighbouring parts, but that’s problematic as you might actually want them to collide in certain situations.įor some constructions when contacting the ground, their collision response with the ground is kinda jittery and they keep bouncing around for ages after the initial collision. One workaround I tried was to shrink the colliders, trouble is I had to shrink them by quite a large amount and even then I’d still get occasional unwanted collisions. What I thought was my gear constraints not working properly was actually due to the moving parts (blocks, axles and gears) within a construction colliding with each other, and everything was getting all jammed up. The collision contact tolerance seems to have significantly changed with Unity 5. After submitting a bug report, I heard back from Unity - turns out the workaround is to restore the inertia tensor after unfreezing, which works fine. When unfreezing a rigidbody, its rotations weren’t being unfrozen, this bug happens if you had already modified the rigidbody’s inertia tensor. I’ll sum up where I’ve gotten things to so far. I’ve had success with some issues, not so much with others. The latest demo is now available to download from the GearBlocks Steam store page.įor some time I’ve been trying to resolve the physics issues after upgrading GearBlocks to Unity 5. Share your creations with the community, try out what others have made, and maybe learn a new building trick or two along the way!.Or jump right into creative mode for the ultimate freedom to build and test your machines, or even create your own challenges and mini-games.Start simple and ramp up your experience through a series of challenges in scenario mode.Make ragdolls from body parts and use them as your custom player character.Smash your constructions to smithereens or blow them up with explosives.Jump into the driver’s seat and put your vehicles through their paces.Delve into the fine details of your creations with the flexible building system.Create from hundreds of different mechanical elements that behave much like their real world counterparts.Want it to have a functional drive-train with a differential? Put it all together with gears, axles and a motor. Want your car to have working steering? Build the steering linkages and hook up the rack and pinion gears. GearBlocks opens up a world of mechanical creation: motors, gears, pulleys & belts, CV joints, spring dampers, linear actuators, and much more. Thanks for reading, and if you get a chance to try the demo I'd welcome any feedback! Hopefully some of you will find it interesting, especially what I've been doing with physics in Unity. I've been posting to my own dev blog for a while, but I thought I'd start a thread here. Hey everyone, here's a game I've been developing for many years.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |