Jump to content

Simplist way of adding wheels?


Andy Gilbert
 Share

Recommended Posts

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

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

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));

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

  • 3 weeks later...

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

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

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

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

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

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

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

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

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

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

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

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...