My rolling ball game isn’t going well. I’m a beginner to unreal engine and while I have successfully developed a prototype, the ball just keeps rotating on its axis fast with little actual Movement. I am attaching a GIF of the movement as well as a screenshot of the moment blueprint. All help will be highly appreciated. Thanks in advance!
Game Rolling Ball
I’ll surely try it out today
June 14, 2022, 3:01am
Thanks for you help and tips ! My question was indeed not the cleareest ^^
So I’ve tried your solution, but from what I understand I would need to trigger this “action” every tick in order to keep it at the right place. First it seems to work but, when I do this, the Ring location isn’t really fixed to the ball it move a bit when I roll fast :
(it seems I’m too new to put include a media, so I download a video below)
[MyBalls Unreal Editor 2022 05 28 08 42 …
here is the original thread with more details
but my pawn player is simply a spherical object with no rings or anything, will the video still be of help? Pardon me if it will, I am still in an early stage of learning the engine. thanks!
June 14, 2022, 3:20am
yes…just pay attention how the ball is rolled.
Bassically using ADD FORCE instead TORQUE
Add Force is linear direction force. (like pushing it) …apply pointing the direction you want it to move (forward vector multiplied by a factor for example)
Thanks, I definitely check out the video,
June 14, 2022, 3:28am
instead getting the player pawn and casting it in every tick like that, just do that ONCE in the beginplay node and store the object in a variable and in the inputaxis even you just get the variable
What kind of variable should the sphere variable be? static mesh? I am not yet to understand in-depth code!
I chose input key mapping, is it that?
@eldany.uy Please let me what kind of variable the ball should ball be, is it a static mesh or an input axis or something else. Thanks for the help!
It seems that add force goes with the character class but my player is only a pawn.