public RailController(string id, ControllerType controllerType, IActor targetActor, RailParameters railParameters, float lerpSpeed) : base(id, controllerType, targetActor) { this.railParameters = railParameters; this.lerpSpeed = lerpSpeed; }
public RailController(string name, Actor parentActor, bool bEnabled, RailParameters railParameters, Actor targetActor) : base(name, parentActor, bEnabled) { this.railParameters = railParameters; this.targetActor = targetActor; //set the initial position of the camera this.ParentActor.Transform3D.Translation = railParameters.MidPoint; }
public RailCharacterFollowController(string name, Actor parentActor, bool bEnabled, RailParameters railParameters, Actor targetActor, float distanceToTarget) : base(name, parentActor, bEnabled) { this.railParameters = railParameters; this.targetActor = targetActor; this.distanceToTarget = distanceToTarget; //put the camera on the rail mid point this.ParentActor.Transform3D.Translation = railParameters.Start; }
public RailCamera3D(string id, ObjectType objectType, Transform3D transform, ProjectionParameters projectionParameters, Viewport viewPort, RailParameters railParameters, Actor targetActor) : base(id, objectType, transform, projectionParameters, viewPort) { this.railParameters = railParameters; this.targetActor = targetActor; //put the camera on the rail mid point this.Transform3D.Translation = railParameters.MidPoint; }
public RailController(string id, ControllerType controllerType, IActor targetActor, RailParameters railParameters) : base(id, controllerType, targetActor) { this.railParameters = railParameters; }