PurrDiction

Built-in Components

PurrDiction ships components for common predicted gameplay. They are production building blocks as well as source examples for custom identities.

Component Use it for
Predicted Transform Rollback-aware position and rotation with visual interpolation and correction.
Predicted Rigidbody / Rigidbody2D Unity physics bodies simulated by the Prediction Manager with rollback state and predicted collision events.
Predicted Projectile 3D Lightweight cast-based spherical projectiles with gravity, triggers, and bounce behavior.
Predicted Identity Spawner A deliberate bridge from a predicted object to one or more ordinary PurrNet Network Identities.
Predicted Parent Opt-in predicted transform parenting: reparenting rolls back, replays, and reaches late joiners.

Supporting systems include:

  • PredictedPhysicsCallbacks for rollback-aware 3D collision and trigger events on custom predicted objects.
  • PredictedStateMachine for modular predicted state logic.
  • PredictedRandom, PredictedTime, PredictedPlayers, and PredictedHierarchy, enabled through the Prediction Manager's built-in systems.

Reference implementations for top-down character-controller and Rigidbody movement live under Assets/PurrDiction/Runtime/Prebuilt/. Copy the patterns you need rather than treating the samples as a general-purpose character controller.

Before choosing a component, decide whether it should use full prediction, server relay, soft correction, or ownership-based prediction.