How to use set world location with sweep to make actors move smoothly across uneven ground?

Any suggestions for how to use set world location on my vehicle actors and use the sweep collision to make it move smoothly across ground?

can you give us more information? if its a vehicle usually you’d move the chassis and offset the wheels for collision, like a spring

1 Like

Different vehicles really, but no, I basicly just want to move a mesh by adding a velocity (vector) to the world location of the object to make it move. I also simulate gravity in this velocity vector, but struggling with moving the object further whenever the sweep of the set world location hits something, as this makes it stop completely.

its tricky, in that case i’d use a flat surface to move along and any ‘rocks’ and such dont effect collision.

if you’re familiar with c++ look at the base unreal engine movement component
key functions are depenetrate and slidealongsurface

in short you have to handle hits, check if a hit is ‘blocking’ or ‘drivable’

2 Likes

Thanks!! Yes, im familiar with cpp, and will check it out! Great tip :smiley:

1 Like