article thumbnail

Creator 3.8 - Collider2D can't get collision direction on BEGIN_CONTACT?

Cocos

Hi, Im using Creator 3.8.5 & handling 2d collision - to get direction of 2 objects when they collide My physics engine is 'Box2D based 2D physics system" I followed this article docs.cocos.com 2D Contact Callback | Cocos Creator Cocos Creator Docs and my code goes here ballColliderComp.on(Contact2DType.BEGIN_CONTACT,

article thumbnail

Nearing the Finish Line: Rewriting the Untold Engine

Harold Serrano

Want collision? One Last Piece: The Collision System With almost every system in place, I’m now working on the Collision System—the last big piece of this rewrite. After wrapping up the Collision System, my focus will shift to finalizing the documentation and writing tutorials. Want to add physics? setEntityKinetics().

Engine 69
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

Godot XR update - February 2025

Mircosoft Game Dev

Features Update OpenXR to Khronos 1.1.41 release This version of XR Tools has been updated to contain Godot 4.2 mesh formats and thus requires Godot 4.2+.

Collision 102
article thumbnail

Collision Callbacks not triggering

Cocos

Can you share your collision callback function? It seems you are assigning readableonly variable?

article thumbnail

Physics Collision with non dynamic types

Cocos

I’ve tried changing the type (static/kinematic/animated) of the other objects, but collision detection still doesn’t work. The only time collision is detected is when I set the “Character” object’s Rigidbody2D type to “dynamic”. However, this causes the “Character” object to be affected by gravity, which I don’t want. normalize().multiplyScalar(this.speed);

article thumbnail

Physics Collision with non dynamic types

Cocos

I’ve tried changing the type (static/kinematic/animated) of the other objects, but collision detection still doesn’t work. The only time collision is detected is when I set the “Character” object’s Rigidbody2D type to. However, the “Character” object doesn’t collide with other objects that have a Rigidbody2D and a Collider2D attached.

article thumbnail

Physics Collision with non dynamic types

Cocos

I’ve tried changing the type (static/kinematic/animated) of the other objects, but collision detection still doesn’t work. The only time collision is detected is when I set the “Character” object’s Rigidbody2D type to. However, the “Character” object doesn’t collide with other objects that have a Rigidbody2D and a Collider2D attached.