Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

PhysicsUtils

$
0
0
Hi,

We are converting a 2d arcade physics based game to Photon True Sync.

One possible action in our game is to kick a ball or a player near you. When a player press the button we currently do:

Collider2D[] colliders = Physics2D.OVerlapCircleAll ( radius );

and then we apply a force to all rigidbody in that vector.

How can we do this with TrueSync? My idea is to do the same thing, and then get the TSTransform of object and check that distance is really less than radius.

But this means that my objects should have two colliders (Collider2D for Unity Physics and Collider2D for TrueSync Collision).

Is this right?

Thank you.
Andrea.

Viewing all articles
Browse latest Browse all 15755

Trending Articles