public void SetStartingVelocity(Vector2 velocity) { if (physicsEntity == null) { // This will likely always happen, as the physics entity is generated // in Start(), and this function is called before then GeneratePhysicsEntity(); } physicsEntity.AddVelocity(velocity.x, velocity.y); }