Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

BoxShape3D

Inherits: Shape3D < Resource < RefCounted < Object

Box shape resource for 3D collisions.

Description

3D box shape to be added as a direct child of a PhysicsBody3D or Area3D using a CollisionShape3D node.

Performance: Being a primitive collision shape, BoxShape3D is fast to check collisions against (though not as fast as SphereShape3D).

Tutorials

Properties

Vector3

size

Vector3(1, 1, 1)


Property Descriptions

Vector3 size = Vector3(1, 1, 1)

The box's width, height and depth.