AnimatThruster::AnimatThruster(Entity & entity, Ray3 const & ray) : Thruster(entity, ray, false, 1.f) { auto & tick_roster = entity.GetEngine().GetTickRoster(); tick_roster.AddOrdering(& AnimatThruster::TickThrustFactor, & Thruster::Tick); tick_roster.AddCommand(* this, & AnimatThruster::TickThrustFactor); }
CameraController::CameraController(Entity & entity, std::shared_ptr<Entity> const & subject) : _super(entity) , _ray_cast(* new physics::RayCast(entity.GetEngine().GetPhysicsEngine(), camera_controller_height)) , _subject(subject) { auto & roster = GetEntity().GetEngine().GetTickRoster(); roster.AddOrdering(& CameraController::Tick, & Entity::Tick); roster.AddCommand(* this, & CameraController::Tick); }