[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).
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:
[ad_2]