article thumbnail

Handle the collision of sprites

Cocos

best way to debug this kind of bugs is to activate physic debugging, add this to your code. onLoad() { PhysicsSystem2D.instance.debugDrawFlags = EPhysics2DDrawFlags.Aabb | EPhysics2DDrawFlags.Pair | EPhysics2DDrawFlags.CenterOfMass | EPhysics2DDrawFlags.Joint | EPhysics2DDrawFlags.Shape; }

article thumbnail

Collision3D event.contacts[] sometimes empty onCollisionEnter?

Cocos

and trying to find out the contactPoint when 2 colliders collide The docs said that I can get the collision’s event.contacts to get contactPoints, but my test code sometimes return an epty array of contactPoint for “onCollisionEnter” Is this a bug or I need to try “onCollisionStay” (which occurs repeatedly) ?

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Dev snapshot: Godot 4.0 beta 12

Mircosoft Game Dev

Physics fixes and improvements for sphere-capsule, sphere-box, sphere-cylinder, and capsule-cylinder collisions ( GH-70660 , GH-70787 ). iOS: Check Xcode output and display errors if code signing, project build or.ipa export failed ( GH-71212 ). Physics: Fix sphere-capsule collision logic ( GH-70660 ). Bug reports.

Beta 110
article thumbnail

10 Worst Video Game Glitches to Test Before Launching Your Next Game

iXie gaming

Usually, they occur due to issues within the code or faulty animation controls. As a result, you must manage your game’s code during development and even after launching it. Also, consider patching and releasing new updates for your video game to remove bugs and glitches from the previous versions.

Texture 52
article thumbnail

Dev snapshot: Godot 4.0 beta 9

Mircosoft Game Dev

Editor: Add one-way indicator to tile collision editor ( GH-67283 ). Note: This breaks compatibility intentionally, but we missed merging relevant transition code in this beta ( GH-70244 ). Physics: Fix 2D & 3D Continuous Collision Detection sometimes adjusting velocity too much ( GH-69934 ). Bug reports.

Beta 99
article thumbnail

Dev snapshot: Godot 4.0 beta 12

Mircosoft Game Dev

Physics fixes and improvements for sphere-capsule, sphere-box, sphere-cylinder, and capsule-cylinder collisions ( GH-70660 , GH-70787 ). iOS: Check Xcode output and display errors if code signing, project build or.ipa export failed ( GH-71212 ). Physics: Fix sphere-capsule collision logic ( GH-70660 ). Bug reports.

Beta 85
article thumbnail

Dev snapshot: Godot 4.0 beta 14

Mircosoft Game Dev

Physics: Implement analytic collision normals ( GH-71447 ). See the PR for details on the rationale and how to adapt your code. Note that there’s a helpful error in the shader editor telling you how to port code, but there’s a typo: filter_linear_mipmaps should be filter_linear_mipmap (no ‘s’).

Beta 104