Im new to ue5, coming from unity, and was wondering how could i make a simple cube moving with wasd and look around with mouse, just like a character bp. I got to know i have to use pawn and player controller but dont know what to write and put in those. I cant use character bp cause it has a capsule collider that i dont want to have and cant remove it as i know. Any help will be appreciated.
Hey @anonymous_user_4fe10adf, welcome to the Unreal Community!
The easiest way to set up character movement in Unreal is through the character movement component, however as you mention that is locked to the Character class which has to have a capsule. There is another movement type called Floating Pawn Movement which may work better for your needs.
I would recommend following through this tutorial on setting up character movement first. That should give you a pretty good idea of what is involved in getting the vectors required and setting up input for movement. These principles can also be applied to floating pawn movement if desired, you just need to add a floating pawn movement component to your pawn class.
It is worth noting that the capsule component can not be deleted, but it can be rescaled by selecting its component and changing the scale properties. You may be able to create a capsule that works better for your needs in this case.
I hope this information helps, and good luck!
lots of options.
-
You could still use character class and just disable collision on the collider.
-
use pawn class and add floating pawn movement component, or create your own movement component.
-
if creating your own movement component, you start with an actor component, then just put your basic logic in there however you want (whether its physics movement or directly moving the owner actor.)
For getting input to the component, you can start with a simple approach and just get input action/axis events on the character actors event graph, and then passing them along to events/functions in the movement component. (same thing happening if you use Epics character movement component.)
In addition to above, you probably want to search for “unreal blueprint communications” so you can see examples of the common ways to communicate between blueprints. You didn’t mention if you use blueprint or c++ but probably it is generally easier to understand basic communications with blueprint first, then getting into details of c++ might be easier. Up to you ofcourse.
There is also quite a few examples projects you can grab from the launcher. Advanced stuff like Lyra or the older Shooter project, and simpler stuff like that one project with the cartoony characters (forgot name) that is using 100% blueprints.