Class: Entity
Lua
C++
Edit

Entity::CollisionTest

This method performs a static or swept collision test between this entity and the specified entity, or all objects in the nearby vicinity.

Parameter Description
entity single entity to test collision with
position for a swept collision test, the final position of this entity
rotation for a swept collision test, the final rotation of this entity
hits the maximum number of collisions that will be allowed to occur before the routine stops checking

Returns

Returns a list of all collisions that are detected.

Copyright © 2006-2026 Leadwerks Software.
All rights reserved.
Leadwerks 4 Documentation