This commit is contained in:
2025-06-16 15:14:23 +02:00
committed by devbeni
parent 60fe4620ff
commit 4ff561284f
3174 changed files with 428263 additions and 0 deletions

View File

@ -0,0 +1,22 @@
using UnityEngine;
namespace Mirror.Examples.BilliardsPredicted
{
// keep the empty script so we can find out what type of ball we collided with.
public class RedBallPredicted : NetworkBehaviour
{
/* ball<->pocket collisions are handled by Pockets.cs for now.
because predicted object's rigidbodies are sometimes moved out of them.
which means this script here wouldn't get the collision info while predicting.
which means it's easier to check collisions from the table perspective.
// destroy when entering a pocket.
// there's only one trigger in the scene (the pocket).
[ServerCallback]
void OnTriggerEnter(Collider other)
{
NetworkServer.Destroy(gameObject);
}
*/
}
}