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

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

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

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

Dev snapshot: Godot 4.0 beta 11

Mircosoft Game Dev

Be sure to report anything that stops working as expected in your scripts. Editor: Fix error when dropping script into script editor ( GH-70580 ). Editor: Fix resource picker regression for scripted resources ( GH-70277 ). GUI: Expose Tree::deselect_all to scripting ( GH-71056 ). get_root() ).

Beta 102
article thumbnail

Dev snapshot: Godot 4.0 beta 12

Mircosoft Game Dev

A couple fixes to the text resource loader which could impact notably reloading scripts ( GH-71170 ). Physics fixes and improvements for sphere-capsule, sphere-box, sphere-cylinder, and capsule-cylinder collisions ( GH-70660 , GH-70787 ). Physics: Fix sphere-capsule collision logic ( GH-70660 ). See the list below.

Beta 106
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.