Skip to content

EntityCollided

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
Blitz3D

EntityCollided

EntityCollided:Int32 entity:Int32, type:Int32
Parameter Mode Type Default Description
entity In Int32 required The entity that moved.
type In Int32 required Collision type to look for.

Returns: The first colliding entity of that type, or 0 if there was none.

Description

Finds out whether the entity hit something of a given collision type during the last UpdateWorld, and which one. It is the quick way to ask "am I standing on ground?" without looping over every collision.

Related Commands

CollisionEntity, EntityBox, EntityRadius, EntityType, GetEntityType, ResetEntity

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally