đź““

PlayerProjectilePhysicsComponent

public class PlayerProjectilePhysicsComponent : PhysicsComponent
{
    public int projectileEntityID = -1;
//...

Created to handle bullets created by players originally, however you can use it for other projectiles in your game realistically. Extends PhysicsComponent so has all of the basic 2d physics stuff included

Methods

public override void UpdateComponent()

Because bullets can be created locally by a client to give good input feel, this overridden version needs to make sure it doesn’t do any updating during rollback if it hasn’t been assigned an official projectileEntityID