Remove Bug Remove Code Remove Collision
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 106
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 97
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 81
article thumbnail

Dev snapshot: Godot 4.0 alpha 15

Mircosoft Game Dev

Same deal as usual, lots of bugs fixed and more refactoring and feature work. For users of previous alphas, we don't always have compatibility code to ease transition. If you run into upgrade issues that you can't solve easily, please let us know so we can consider how much inter-alpha compatibility code we need to add.

Alpha 52