Andy Gilbert Posted November 26, 2012 Share Posted November 26, 2012 Hi, whats the simplist way to add some wheels to a physics object? Im not in need of suspension or anything like what, just so an object can roll. Thanks Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Canardia Posted November 26, 2012 Share Posted November 26, 2012 MoveEntity(car,Vec3(0,2,0)); MoveEntity(wheel_front_right,Vec3(1,1,2)); CreateJointHinge(car,wheel_front_right,Vec3(1,1,2),Vec3(-1,0,0)); Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
fumanshoo Posted November 28, 2012 Share Posted November 28, 2012 wow, thanks for posting this! the MoveEntity function is really fun to mess with for a beginner like me haha Quote Link to comment Share on other sites More sharing options...
Andy Gilbert Posted December 18, 2012 Author Share Posted December 18, 2012 Ok, so i have impliemnted this, and unfortunalt i get strange results which im not surprised about. So.. the results i get is very "hard" "bouncy" rolling, even on a flat terrain, the body jumps all over the place. So, what do i need in order to add wheels that dont jump all over the place? The wheels dont need drive, just roll smoothly along terrain. Thanks Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Canardia Posted December 18, 2012 Share Posted December 18, 2012 You should probably use a vehicle then, because without any suspension they are obviously very bouncy. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Andy Gilbert Posted December 18, 2012 Author Share Posted December 18, 2012 If i use a vehicle, can i still apply all other physics to the body like i could with a normal body? Thanks andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Canardia Posted December 18, 2012 Share Posted December 18, 2012 Yes. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Andy Gilbert Posted December 19, 2012 Author Share Posted December 19, 2012 Hi, are you sure? If i load a model and create a vehicle from it, when i try to do any physics commands directly onto the vehicle it just results in errors? Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Andy Gilbert Posted December 19, 2012 Author Share Posted December 19, 2012 Ok, so i have got it working, but for som reason the more "force" i add to the body to get it rolling the wheels start to "move" back, they slowly change position the fast i go? Why is this? Thanks Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Canardia Posted December 19, 2012 Share Posted December 19, 2012 I think it doesn't support direct physics forces, like the character controller, but you have to push it with another physics body. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Andy Gilbert Posted December 19, 2012 Author Share Posted December 19, 2012 Which is what i am doing, i am loading the model, creating a vehicle from the model, then apply physics to the actualy model body, not the vehicle, this seems to work. But when i apply physics tothe body, the wheels slowly get left behind, then when i slow down they catch up again? Thanks Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Canardia Posted December 19, 2012 Share Posted December 19, 2012 What I mean is that you need to create a seperate physics hull around the vehicle body. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Andy Gilbert Posted December 19, 2012 Author Share Posted December 19, 2012 But what is wrong about doing it the way i specified above, it seems to do exactly what i need until the body starts to move fast? At which point the wheels seem to get left behind, when i slow down the return to thier positions. Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Canardia Posted December 19, 2012 Share Posted December 19, 2012 Both the character controller and the vehicle have some hacky code, so they don't work like normal physics bodies. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Andy Gilbert Posted December 19, 2012 Author Share Posted December 19, 2012 Hacky code? Sounds good... So does that mean whatim trying to do not possible with le? It sounds rather trivial, just want a body with working wheels that I can apply forces to like other bodies, except this has wheels on it? Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.