Class BehavioredCamera


  • public class BehavioredCamera
    extends Object
    Combine a behavior and a camera, when using this class, the camera will use the provided behavior. The default is free fly.
    Author:
    Grégory Van den Borre
    • Constructor Detail

      • BehavioredCamera

        public BehavioredCamera​(Camera camera)
    • Method Detail

      • changeBehavior

        public final void changeBehavior​(CameraBehaviors behavior)
      • changeBehavior

        public final void changeBehavior​(CameraBehavior behavior)
      • move

        public final void move​(be.yildizgames.common.geometry.Point3D destination)
        Move the camera and the target at the same time.
        Parameters:
        destination - New position to reach for the camera.
      • lookAt

        public final void lookAt​(be.yildizgames.common.geometry.Point3D target)
      • setPosition

        public final void setPosition​(be.yildizgames.common.geometry.Point3D newPosition)
      • getPosition

        public final be.yildizgames.common.geometry.Point3D getPosition()
      • rotate

        public final void rotate​(float yaw,
                                 float pitch)
      • setRelativePosition

        public final void setRelativePosition​(be.yildizgames.common.geometry.Point3D position)
      • getDirection

        public final be.yildizgames.common.geometry.Point3D getDirection()