Remove Code Remove Collision Remove Debug
article thumbnail

Developer Shares Building Fabrics, Ropes, And Soft Bodies

Cocos

or better : with 3D scenes Origins Two days ago, I saw a fun effect: The article was: Dazzling HTML5 Front End Design Source Code Analysis Notes - Remnant Clothes Effect Example: Tearable Grid It is an effect that I’ve seen before and recently brushed up on. So I researched the code and prepared to port it to Cocos.

Build 98
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; }

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

Best Practices for Sharing Code Between Cocos Creator 3 Projects

Cocos

Best Practices for Sharing Code Between Cocos Creator Projects Hello fellow developers, I’m currently exploring efficient ways to share reusable code across different projects in Cocos Creator and would appreciate your insights on two methods I’m considering: Git submodules and NPM packages. Has anyone else faced similar challenges?

Code 40
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 ). Export: Fix missing "debug"/"release" export presets feature tags ( GH-71274 ). Physics: Fix sphere-capsule collision logic ( GH-70660 ). See the list below.

Beta 106
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 ). Export: Fix missing “debug”/”release” export presets feature tags ( GH-71274 ). iOS: Check Xcode output and display errors if code signing, project build or.ipa export failed ( GH-71212 ).

Beta 81
article thumbnail

Godot Engine reaches 2.0 stable

Mircosoft Game Dev

Initializing class member variables can be quite of a hassle, code such as this is common in GDScript: The 'onready' keyword allows initialization of class member variables at the same time when _ready is called, saving some code: But doing this for autoloaded scenes can still be a hassle, as it has to be done every time a script is created.

article thumbnail

Maintenance release: Godot 2.1.4

Mircosoft Game Dev

A big thankyou to all the contributors who worked on this release by implementing bug fixes or features, or testing the changes to spot potential regressions and help debug issues. Debugging: Many improvements to the editor's debugger and display of complex types. Physics: Add one-way collision to tile-set/tile-map. Highlights.

Tile 52