How do I fix this?
I want my character to have an arm, that points towards the cursor or something else, but when I tried to attach the arm to the body it appeared at the wrong place.
Code:
Points:
Before:
After:
How do I fix this?
I want my character to have an arm, that points towards the cursor or something else, but when I tried to attach the arm to the body it appeared at the wrong place.
Code:
Points:
Before:
After:
Move center arm point to where you want it to work as pivot
Think of it as clock arm
It does not spin around its center i mean center of arm itself
But around where hole is in clock arm that is nailed to clock shield
THAT is what center point do for rotation
And now you change arm position to playerCharacter.CenterX() same for Y
Not player.CharacterPointX(“Center”)
If you want to use some custom point as reference then syntax is
ObjectName.PointX("PointName")
ObjectName.PointY("PointName")
So if you have on playerCharacter point named arm and you want to use it as pivot
Then you would go with
playerCharacter.PointX("arm")
playerCharacter.PointY("arm")
Where referencing origin point is
ObjectName.X() same for Y
And center point
ObjectName.CenterX() same for Y
Ah, I’ve seem to found the issue I’ve had. The problem was that the body’s skin and face was the one that was offset, I couldn’t tell because I made the body invisible. Thanks for your advice tho.