What I’m trying to do is move and object towards the front of the camera when holding the E key, I made an Actor class attached a cube mesh to it, enabled simulate physics and use gravity. I tried just plain simply setting the actor’s location by SetActorLocation(Input), but objects will go through walls. I also tried “RootComponent->ComponentVelocity”, however that didn’t do anything. So, it appears I can only get a velocity but not set a velocity. So is there another way to add force/push/set velocity or something like that on an Actor in which it does not get pushed through walls?
Thanks in advance.