swansong Posted December 1, 2017 Share Posted December 1, 2017 I am making a game where I need to know if a sphere has collided with an enemy. The problem I have is that the enemies are sprites. Is there a way to check collisions with sprites? Quote Link to comment Share on other sites More sharing options...
dbawel Posted December 1, 2017 Share Posted December 1, 2017 @swansong- You might want to consider using SPS (Solid Particle System). THe documentation and examples are found here: https://doc.babylonjs.com/how_to/solid_particle_system DB Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted December 1, 2017 Share Posted December 1, 2017 Look up AABB collision detection, and pixel perfect collisions. Quote Link to comment Share on other sites More sharing options...
jerome Posted December 1, 2017 Share Posted December 1, 2017 https://doc.babylonjs.com/how_to/solid_particle_system#particle-intersections Rotating billboarded quads colliding a sphere : https://www.babylonjs-playground.com/#10RCC9#11 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.