A question about TSCollision.contacts
Hello,I wrote my own simple 2d bounce script just like this.
But the TScollision2d.contacts[0].point is always(0,0),and the TScollision2d.contacts[0].normal is (0,0),too.That confused me.Is it a bug or it's just my problem.

But the TScollision2d.contacts[0].point is always(0,0),and the TScollision2d.contacts[0].normal is (0,0),too.That confused me.Is it a bug or it's just my problem.
0
Comments
public void OnSyncedTriggerEnter(TSCollision2D other)
{
TSVector2 predir = rigid2d.velocity.normalized;
TSVector2 normal= other.contacts[0].normal;
TSVector2 curdir= TSVector2.Reflect(predir, normal);
rigid2d.velocity = curdir.normalized * (rigid2d.velocity.x / rigid2d.velocity.normalized.x);
}