Skip to content

GetPhysicsContactCount

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

GetPhysicsContactCount 〔BlitzLLVM〕

GetPhysicsContactCount:Int32 world:Int32=0
Parameter Mode Type Default Description
world In Int32 0 The physics world, 0 (default) for the default world.

Returns: The number of contacts.

Description

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

How many contacts the last PhysicsUpdate of a world found between bodies that report them (see PhysicsContactReport). The list is the same on every run, in the order of the bodies, one contact for each pair.

Differences

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

Examples

PhysicsUpdate
For i = 0 To GetPhysicsContactCount() - 1
	Print GetPhysicsContactEntityA(i) + " touches " + GetPhysicsContactEntityB(i)
Next

Related Commands

GetPhysicsContactDepth 〔BlitzLLVM〕, GetPhysicsContactEntityA 〔BlitzLLVM〕, GetPhysicsContactEntityB 〔BlitzLLVM〕, GetPhysicsContactNX 〔BlitzLLVM〕, GetPhysicsContactNY 〔BlitzLLVM〕, GetPhysicsContactNZ 〔BlitzLLVM〕, GetPhysicsContactReport 〔BlitzLLVM〕, GetPhysicsContactSensor 〔BlitzLLVM〕

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

Clone this wiki locally