Skip to content

PhysicsOverlapSphere

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

PhysicsOverlapSphere 〔BlitzLLVM〕

PhysicsOverlapSphere:Int32 x:Float32, y:Float32, z:Float32, radius: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 sphere, x.
y In Float32 required The middle of the sphere, y.
z In Float32 required The middle of the sphere, z.
radius In Float32 required The radius, 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 sphere.

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 sphere. 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〕, PhysicsOverlapBox 〔BlitzLLVM〕

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

Clone this wiki locally