PlatformEffectorCompOpt:

ignoreSides?: Vec2[]

If the object is about to collide and the collision normal direction is in here, the object won't collide. Should be a list of unit vectors `LEFT`, `RIGHT`, `UP`, or `DOWN`.

shouldCollide?(this: GameObj, obj: GameObj, normal: Vec2): boolean

A function that determines whether the object should collide. If present, it overrides the `ignoreSides`; if absent, it is automatically created from `ignoreSides`.

kaplay logo

Misc