I have created a class that inherits from Pawn, and I am trying to use AddMovementInput to make it move forward. However, it is not working even though physics simulation and gravity are enabled.
1 Like
Do you have the same proble than me?
Take a look at this please!!
okay
you need to add some kind of Movement Component for that function to work or add your own movement code.
from the docs :
Base Pawn classes won’t automatically apply movement, it’s up to the user to do so in a Tick event.
okay,but I used the CharacterMovementComponent,it doesn’t work too
UCharacterMovementComponent::AddImpulse | Unreal Engine Documentation
I think it is possible that version 5.2 has some bug related to the input… it would be great if someone from Epic confirmed or ruled out this possibility to us
seems like AddMovementInput() only works on Button press that is linked from the project Input. doesnt work when used on TIck, etc.