Chaos Vehicle stops/resets when re-possessed while moving

Does anyone know how to get it to NOT fully reset its physics when possessed? Essentially at the moment on possessing a moving chaos vehicle it STOPS, and all physics go to zero until you start moving it again.

My case is I’m driving a chaos vehicle, and get out while it is still moving (possessing a character now), and then on getting back inside the moving vehicle (possessing the chaos vehicle again) it will immediately stop/reset in place.

Is there an option somewhere that can be set to prevent this behavior? or does it have to be faked by re-applying its previous physics state when possessed?

Thanks!

Hey there @Evigmae! Welcome back to the forums! From my testing, without overriding the way possession works I don’t believe there’s a native way to keep it rolling. I wonder if this is due to being put to sleep or the movement components just not functioning without an AI or player controller above them. I created a little test environment for this. I’m trying to see if I can make a workaround to maintain the velocity, or at least set it back when you repossess. The velocity component of the vehicle movement component isn’t updated consistently but when you add velocity to it it does apply to the vehicle.

I’ll have to do a bit more testing on my side before this works out, but I believe it’s possible to happen smoothly if we add the offset at the end of the frame after possession.

2 Likes

Indeed; storing its Linear and Angular velocity, then possessing, and then applying back the store velocities a frame later keeps the vehicle going seamlessly.

Was quite a simple solution actually. Thanks!

3 Likes