Skip to content

PhysicsOverlapBox

Narta Xaymar Dirks edited this page Nov 14, 2026 · 1 revision
BlitzLLVM

PhysicsOverlapBox 〔BlitzLLVM〕

PhysicsOverlapBox:Int32 x:Float32, y:Float32, z:Float32, half_x:Float32, half_y:Float32, half_z:Float32, mask_low:Int32=-1, mask_high:Int32=-1, sensors:Int32=0, world:Int32=0
Parameter Mode Type Default Description
x In Float32 required The middle of the box, x.
y In Float32 required The middle of the box, y.
z In Float32 required The middle of the box, z.
half_x In Float32 required Half of the width of the box, more than 0.
half_y In Float32 required Half of the height of the box, more than 0.
half_z In Float32 required Half of the depth of the box, more than 0.
mask_low In Int32 -1 The layers to look at, as bits 0 to 31 of a mask (bit n is layer n). -1 (default) looks at all layers.
mask_high In Int32 -1 The layers 32 to 63, as bits 0 to 31 of a mask. -1 (default) looks at all layers.
sensors In Int32 0 1 also finds sensors (see PhysicsSensor); 0 (default) leaves them out.
world In Int32 0 The physics world, 0 (default) for the default world.

Returns: How many bodies touch the box.

Description

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

Finds the bodies of a physics world that touch a box that is lined up with the world. The bodies are kept in the order they were made; read them with GetPhysicsOverlap until the next overlap query.

Differences

  • The original has no such command. This is an extension; programs that use it do not compile with the original Blitz3D.

Related Commands

PhysicsAngularDamping 〔BlitzLLVM〕, PhysicsAngularVelocity 〔BlitzLLVM〕, PhysicsApplyAngularImpulse 〔BlitzLLVM〕, PhysicsApplyForce 〔BlitzLLVM〕, PhysicsApplyForceAt 〔BlitzLLVM〕, PhysicsApplyImpulse 〔BlitzLLVM〕, PhysicsApplyImpulseAt 〔BlitzLLVM〕, PhysicsOverlapSphere 〔BlitzLLVM〕

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

Clone this wiki locally