So I’m pretty new to UE, and game dev in general. I’ve started a project using the first person shooter template. So i’ve created this “enemy” which is a sphere. At this moment it faces the player and moves towards it. I would like it to rotate, so it looks like it’s rolling and not just moving. This is what i have at this point.
I’ve tried several stuff to make it roll, but with no results. any idea on how to achieve this? thx!
there are a few ways to do it.
I would probably use the physics system that would probably look the best and it’s pretty easy to set up. you could use the ‘add force/impulse at location’ nodes to make it roll. if you put the enemy’s origin in the center of the sphere then the sphere location minus some of the Z value will add a force in an offset location giving it some roll. the torque node would probably work to, depending if the want the rotation to drive the movement or the movement to drive the rotation.
another option is to use an animation. so basically you would get a looping rotation animation from blender or whatever program you use and then use that the same as you would a walk/run animation.
the third option is to rotate it in the blueprints. for that you would need to make sure your sphere mesh isn’t the root of the blueprint since you would turn the root to face the player, while rolling just the mesh component.