Skip to content

Enable a setting to decide whether to use pixel alpha in collision detection#591

Merged
JiepengTan merged 1 commit intogoplus:devfrom
JiepengTan:pr_enable_collision_type_config
Apr 17, 2025
Merged

Enable a setting to decide whether to use pixel alpha in collision detection#591
JiepengTan merged 1 commit intogoplus:devfrom
JiepengTan:pr_enable_collision_type_config

Conversation

@JiepengTan
Copy link
Copy Markdown
Contributor

Enable a setting to decide whether to use pixel alpha in collision detection

By default, pixel-based collision detection is used (to stay consistent with Scratch).
Only when the project's index.json configuration property collisionByShape is set to true will the engine's collision box be used for collision detection.

eg: index.json

{
  "collisionByShape": true,
  ... other configs
}

@JiepengTan JiepengTan force-pushed the pr_enable_collision_type_config branch from 659f455 to afa9fc7 Compare April 17, 2025 03:57
@JiepengTan JiepengTan requested a review from nighca April 17, 2025 03:58
@JiepengTan JiepengTan merged commit c8f709c into goplus:dev Apr 17, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants