Represents a glTF physics shape.
Represents a physics shape as defined by the OMI_physics_shape or OMI_collider glTF extensions. This class is an intermediary between the glTF data and Godot's nodes, and it's abstracted in a way that allows adding support for different glTF physics extensions in the future.
The height of the shape, in meters. This is only used when the shape type is "capsule" or "cylinder". This value should not be negative, and for "capsule" it should be at least twice the radius.
The ImporterMesh resource of the shape. This is only used when the shape type is "hull" (convex hull) or "trimesh" (concave trimesh).
The index of the shape's mesh in the glTF file. This is only used when the shape type is "hull" (convex hull) or "trimesh" (concave trimesh).
The radius of the shape, in meters. This is only used when the shape type is "capsule", "cylinder", or "sphere". This value should not be negative.
The type of shape this shape represents. Valid values are "box", "capsule", "cylinder", "sphere", "hull", and "trimesh".
The size of the shape, in meters. This is only used when the shape type is "box", and it represents the "diameter" of the box. This value should not be negative.
Creates a new GLTFPhysicsShape instance by parsing the given Dictionary.
Creates a new GLTFPhysicsShape instance from the given Godot CollisionShape3D node.
Creates a new GLTFPhysicsShape instance from the given Godot Shape3D resource.
Serializes this GLTFPhysicsShape instance into a Dictionary in the format defined by OMI_physics_shape.
Converts this GLTFPhysicsShape instance into a Godot CollisionShape3D node.
Converts this GLTFPhysicsShape instance into a Godot Shape3D resource.