article thumbnail

Prefabs with polygonCollider returning wrong collision normal

Cocos

we will solve this problem in the following issue github.com/cocos/cocos-engine Prefabs with polygonCollider returning wrong collision normal opened 02:02AM - 26 Jun 23 UTC lealzhan [link] … lision-normal/58972 Hello guys, I am working on multiplayer platformer game using colyseus. y: z.getWorldManifold().normal.y,

article thumbnail

Prefabs with polygonCollider returning wrong collision normal

Cocos

null) { console.log(z.getWorldManifold()); this.socket.send(“Collision”, { collisionVecs: { x: z.getWorldManifold().normal.x, Because of this, the impulse I am applying on them at contact point is in same direction which is making them move in same direction after collision. y: z.getWorldManifold().normal.y,

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

Collision Callbacks not triggering

Cocos

Hi, i’m relatively new on Cocos Creator, but i hope i can help you because i’m working on collision from a while me too. Add your component a script where you need to declare these as follows. See at this example: After that create all other elements with a rigidBody and a shape collider.

article thumbnail

Lesson 4: Creating and Using Scripts

Game Designing

  Summary In this Unity Scripts tutorial, we explain the main concepts that apply to scripting in Unity. You’ll learn how to use Unity with C# and the tips and hacks to optimizing your scripts. About Scripting Scripting is an essential ingredient in all games. Welcome to another Unity tutorial.

article thumbnail

How to properly use CharacterController in a 3d Physics world?

Cocos

Hello, I’m learning how to properly set a CharacterController script for a TPS character together with native physics, but I’m not having much success. If I just use the CharaterController + the Rigid body, collisions do not work. And if I add a cylinder collider, it does not stand up.

article thumbnail

How to properly use CharacterController in a 3d Physics world?

Cocos

Hello, I’m learning how to properly set a CharacterController script for a TPS character together with native physics, but I’m not having much success. If I just use the CharaterController + the Rigid body, collisions do not work. And if I add a cylinder collider, it does not stand up.

article thumbnail

New improvements for GPUParticles in Godot 4.0

Mircosoft Game Dev

Allows collisions against the physics world. To solve this, it is now possible to emit particles manually by calling a function from the script API: Sub-Emitters. Emitting particles manually is not only possible from script. Baked SDF Collision. For this, heightfield collision has more advantages. Less flexible.