Skip to content

GetPhysicsHitEntity

Narta Xaymar Dirks edited this page Nov 25, 2026 · 3 revisions

GetPhysicsHitEntity BlitzLLVM

GetPhysicsHitEntity:Int32

Returns: The value.

Description

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

Gives the entity of the body that the last PhysicsRayCast, PhysicsSphereCast, PhysicsBoxCast, PhysicsCapsuleCast 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

GetPhysicsContactEntityA BlitzLLVM, GetPhysicsHitDistance BlitzLLVM, GetPhysicsHitNX BlitzLLVM, GetPhysicsHitNY BlitzLLVM, GetPhysicsHitNZ BlitzLLVM, GetPhysicsHitX BlitzLLVM, GetPhysicsHitY BlitzLLVM, GetPhysicsHitZ BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally