Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

GLTFPhysicsShape

Inherits: Resource < RefCounted < Object

Represents a GLTF physics shape.

Description

Represents a physics shape as defined by the OMI_collider GLTF extension. 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.

Tutorials

Properties

float

height

2.0

ImporterMesh

importer_mesh

bool

is_trigger

false

int

mesh_index

-1

float

radius

0.5

String

shape_type

""

Vector3

size

Vector3(1, 1, 1)

Methods

GLTFPhysicsShape

from_dictionary ( Dictionary dictionary ) static

GLTFPhysicsShape

from_node ( CollisionShape3D shape_node ) static

Dictionary

to_dictionary ( ) const

CollisionShape3D

to_node (