Skip to main content

Physics

5 tools in this family (folder Editor/Tools/Physics/ in the bridge package). Effect: writes changes the project or the scene, read-only does not, destructive deletes or overwrites and the client asks before running it.

ToolEffectDescription
get_physics_settingsread-onlyReturns the project's physics settings: gravity, default solver iterations, sleep thresholds, etc.
physics_overlap_boxread-onlyFind all colliders intersecting an axis-aligned box at center with given half_extents.
physics_overlap_sphereread-onlyFind all colliders intersecting a sphere at center with given radius.
physics_raycastread-onlyCast a ray from origin in direction (auto-normalized) up to max_distance.
set_gravitywritesSet the project's global gravity vector. Default is (0, -9.81, 0).