Hi, I am trying to do a user-controllable crane in UE5, i have a crane BP, i just wanna build something i can use with directional keys, there are 3 controllable things, one of them will turn around in Z-Axis, other two will go up and down in X-Axis. I wanna control the Z-Axis with left and right key, one of the X-Axis will be controlled by up and down keys and other one will be controlled by holding mouse left button. There is my crane photo.
So for clarification, is the problem you are facing setting up the player controls or something different? At the moment there is no question being asked so it is unclear what you are looking for.
Any additional specifics you provide may go a long way in solving your problem!
I am having problem with the objects i wanna control in X-Axis’ pivots, i cant change it so when i move them, they moves around the Z-Axis object, and i need some assistance with how to control them in blueprint.
Okay, so far I only see a set up for the z-axis as far as moving. So when you say that they “move around the z-axis object” do you mean that they move around the root of the blueprint and that is the problem?
Also, have you tried creating/setting up a skeletal mesh for your assets? This would let you create a control rig and more easily ensure that bones pivot where they are supposed to.
I managed to use them as seperate bp objects but now another problem came up
I can use crane’s main arm with little arm together but when i turn the main arm then try to use second arm, second arm’s rotation resets to its first Z-Axis and it looks like this:
I can turn both of them with main arm’s blueprint but little arm’s z axis resets when i use it after i turn the main arm. How can i combine its z-axis with main arm’s?
There is my main arm bp:
Because the z world axis is not relative, have you tried instead to use Set or Add Relative Rotation instead of World Rotation so that the rotation is based off of the parent?
Main part of the crane
Edit: As i see, the reverse button doesnt work and the limited rotation that i built in timeline doesnt work, it rotates on the correct axis but doesnt stop at the limit (for example 45 degrees). Which component should i change?