Skip to content

GetPhysicsHitDistance

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

GetPhysicsHitDistance 〔BlitzLLVM〕

GetPhysicsHitDistance:Float32

Returns: The value.

Description

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

Gives how far from the start of the ray the hit is that the last PhysicsRayCast or PhysicsPointInside found. A normal points out of the body, and the distance is how far from the start of the ray the hit is, in units of the world. The values stay until the next such query and are 0 after one that found nothing.

Differences

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

Related Commands

GetPhysicsHitEntity 〔BlitzLLVM〕, GetPhysicsHitNX 〔BlitzLLVM〕, GetPhysicsHitNY 〔BlitzLLVM〕, GetPhysicsHitNZ 〔BlitzLLVM〕, GetPhysicsHitX 〔BlitzLLVM〕, GetPhysicsHitY 〔BlitzLLVM〕, GetPhysicsHitZ 〔BlitzLLVM〕, GetPhysicsSpeculativeDistance 〔BlitzLLVM〕

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

Clone this wiki locally