Physics controlled Actor behaves differently if possessed

Hi everybody,

I’m trying to get a vehicle to move very arcady by using a simple box as the body and applying forces based on wheel positions, ground properties (mostly friction), and of course player inputs.

So far I’m quite happy with the results, driving around is fun and it works to a certain degree.

The Vehicle is based on a custom Pawn (AVehiclePawn.h /.cpp) which is controlled by the player directly for now (I want to use a playercontroller once this problem is fixed). It has a spring arm and a camera attached. Most of the magic happens in AVehiclePawn.cpp where I do raycasts and some math to achieve the desired result by adding forces at certain locations. The vehicle behaves correct as long as it’s not possessed by a player.

Once it’s possessed by a player (in my case by setting Auto Possess Player to Player 0) the vehicles rotation starts acting weird. It looks like there is a very high angular damping value set. The rotation just feels like the vehicle is surrounded by jelly. For some reason the linear velocity is not influenced at all.

I have no Idea where this comes from. Maybe this can be fixed by a custom MovementComponent or a custom PlayerController. I browsed the Source Code but I could not find anything which might influence pawn rotation. The effect is kinda good gameplay wise but it’s way to strong and I’d like to control it myself.

I hope you guys can help me, I am at my wit’s end.

Best regards, Max

[EDIT] I’ve posted a more detailed explanation (including a video) here: https://www.reddit.com/r/unrealengine/comments/4f6w89/physics_controlled_pawn_behaves_differently_if/

[EDIT2] [EDIT] Okay, I solved it myself. The problem had nothing to do with MovementComponent / PlayerController. I was just stupid and calculated wrong values for the angular velocity which I need for steering. As long as the pawn was not possessed the Steer Axis was not bound and the steer function inside the pawn was not called. Because of that my stupidity only influenced the possessed pawn. Thanks for anybody who had a look :slight_smile: