Home Game Development Collider animated not contact with Collider static – Cocos Creator

Collider animated not contact with Collider static – Cocos Creator

0
Collider animated not contact with Collider static – Cocos Creator

[ad_1]

I create CircleCollidersecond with rigidbody2d (sort animated) and put in a node. When I rotate this node, it doesn’t contact callback with a node FieldCollider2D + rigidbody2d (sort static).
zxczxczcx

Contact Callback operate

onLoad() {
    this.Wheel.getChildByName("arrow")
      .getComponent(FieldCollider2D)
      .on(
        Contact2DType.BEGIN_CONTACT,
        () => {
          console.log("hit----------");
          eventTarget.emit(CS_EVENTS.PlaySound, SOUND.TICK);
        },
        this
      );
  }

Console.log doesn’t seem

White Dot:

Arrow:

Both of them handed one another with out contact callback:
ezgif-3-2929158424

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here