Godot Version
4.4
Question
How can I make the platform still, but still rotate as it is? The player can push the platform around or downward. I don’t want that.
4.4
How can I make the platform still, but still rotate as it is? The player can push the platform around or downward. I don’t want that.
While showing the problem is appreciated, posting the code you are having a problem with will likely get you more/better answers.
The StaticBody that is used for the PinJoint should not be a child of the RigidBody.
StaticBodies usually can’t be moved by external forces. But since it’s a child of the RigidBody, it inherits the RigidBody’s position and moves along.
There is no code involved here. This is all done with nodes. The rigid body on my player’s feet has no code. The rigidbody platform code handles other things, such as replacing the platform based on selection. nothing to do with logic im trying to do here
so if i move it out of the rigidbody, what will happen? it will stay in place? but if it stays in place, then player can stand on it mid air while the rigidbody platform keep swining around.
Your player doesn’t need to be able to collide with the StaticBody, so you can just disable the StaticBody’s collision layer. (I’m not even sure if it needs the collision shape if you only use it for the PinJoint.)
alright, i will test it out