• DOCS
  • EXPLORE
  • LEARN
  • LIBRARY
  • LOGIN
  • Introduction
  • Game
  • Start-loop
  • Objects
  • Sprites
  • Animation
  • Sounds
  • Rooms
  • Input
  • Collision
  • Functions
  • Camera
  • Fps
  • Text
  • Filters
  • Multiplayer
  • Legacy

PixelPAD 2D - collision

get_collision(obj: gameobject, filter: str) -> gameobject or bool

Example
Description
Gets a the first object of class Filter colliding with the object obj
Parameters
obj
The game object to check collisions for.

filter
Name of a game object asset, checks against all objects which are instances of that asset OR can check against a specific object

Return
The first game object that obj is colliding with if there is a collision, False otherwise.

get_collision_list(obj: gameobject, filter: str) -> list

Example
Description
Gets a list of objects of class Filter colliding with the object obj
Parameters
obj
The game object to check collisions for.

filter
Name of a game object asset, checks against all objects which are instances of that asset.

Return
A list of game objects that obj is colliding with. Empty list otherwise.

Collisions

Collision is when two GameObjects touch. PixelPAD2D defines the area of which an object can collide via their sprite's width and height.
PixelPAD
About Us
Discord
Arm Build 3.0.478
Resources
Documentation
EULA
Privacy Policy
Contact Us
hello@pixelpad.io
© 2026 All Rights Reserved.
PixelPAD.io
Logo

Welcome Back!

Log in to continue creating

Save your project by logging in or signing up.
Forgot Password?

Don't have an account?

Logo

Create Your Account

Join thousands of creators on PixelPad

Save your project by logging in or signing up.

Already have an account? Log in

Logo

Join as an Educator

Empower your students with creative tools

Create classrooms and monitor your students' progress.

Already have an account? Log in