I knew that Unreal is good at making game with free camera and complex character, and I worked a lot on that before.
However, this time I want to make a simple game:
- Fixed camera: player cannot control the camera, it is fixed at a given angle and distance.
- Localplayer: it will not contain any network stuff here.
- Simple movement: as many simple RPGs, the character can only walk\run, but cannot jump/crounch/fly…
- No need for realworld-like physics
Perfect examples to describe what I am doing are “Animal Crossing” and “Octopath Traveler”
In my opinion, the Character class and Character Movement Component are very heavy and
complicated. There are a lot of things about complex character function used mainly for acting game. So, I tried to start with Pawn class, together with PawnMovementComponent, for this time.
But after few days I found that it is diffcult to achieve functions like:
- Go up/down stairs and slopes.
- Falling down at the edge of the cliff/balcony. (Without simulated physcis of course)
I tried to use many linetracing stuff to update the movement tick, but it’s hard to get a smooth, elegant result. Lots of bugs occur and the code is messy and ugly.
So, my question is, in this situation, should I use the build-in Character class, as there are lots of functions that I don’t need, or keeping using the Pawn class.
I tried to read the code of the Character class and the Character Movement Component, there are 20k+ lines, and I finally give it up. I think Unreal Engine should have something between Pawn and Character classes.