Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: BooleanComponent
Wraps FXGL's CollidableComponent, the marker component that opts an entity into the FXGL collision system. Without it, an entity's HitBox is not checked against other entities. Attach to any entity that should participate in collision-handler dispatch.
CollidableComponent (bool Value = true)
Creates a new CollidableComponent.
Value is the initial collidable state (defaults to true).isCollidable ()
Returns whether the component is currently collidable.
A bool.setCollidable (bool Value)
Sets the collidable state.
Value is the new state.this objectaddIgnoredType (Type)
Adds an entity type to the ignored list. Collisions with entities of that type are skipped entirely.
Type is the type value (enum or string).this objectremoveIgnoredType (Type)
Removes an entity type from the ignored list.
Type is the type value.this objectgetIgnoredTypes ()
Returns the ignored-type list as an AussomJavaObject around a List
An AussomJavaObject around the ignored-type list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.