3D Collider Question?

Godot Version

4.3

Question

Hello all,

Stupid question time, I am going to attempt very soon, how to open a door in Godot in 3D, something I have done in Unity and Unreal, but, not for a long, long time, the thing is I have forgotten just about everything including the code I used. I should be able to find a tutorial on that somewhere on YouTube.

The purpose of this question is about the actual door. I have have an asset with a door built-in that can be rotated about it axis, so all good, but I don’t know what type of collider I should be using yes, it been a while. I don’t know whether I need a StaticBody3D or Rigidbody3D collider on the actual door so the player cannot walk through it. While the door boundaries don’t change only get rotated I could see an argument for both types of colliders. It moves of course, but, the boundaries related to the door don’t change.

So, which of the bodies should I be using Static or Rigid or is there some other type of body that I am not aware of?

Any assistance is appreciated.

Regards.

Depends on what kind of a door you want. If you do end up leaning towards StaticBodies you may want to use AnimatableBody3D, which can be animated while still colliding with bodies. The only other collision object type is CharacterBody3D which you may be familiar with, though wide rotation likely isn’t it’s strong suite.

Never thought of that! Only used that for a constantly moving platform in 2D and for a constantly swinging “rope”. Never tried stopping in the middle of the operation though. That might be interesting.

Thanks for posting :sunglasses:.