Physics Collision with non dynamic types
Cocos
JUNE 26, 2023
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”. This is the line of code I’m using to move the Character. const movement = new Vec2(x,y).normalize().multiplyScalar(this.speed);
Let's personalize your content