Class BehavioredCamera
- java.lang.Object
-
- be.yildizgames.module.graphic.camera.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 Summary
Constructors Constructor Description BehavioredCamera(Camera camera)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeBehavior(CameraBehavior behavior)voidchangeBehavior(CameraBehaviors behavior)be.yildizgames.common.geometry.Point3DgetDirection()be.yildizgames.common.geometry.Point3DgetPosition()RayProvidergetRayProvider()voidlookAt(be.yildizgames.common.geometry.Point3D target)voidmove(be.yildizgames.common.geometry.Point3D destination)Move the camera and the target at the same time.voidrotate(float yaw, float pitch)voidsetPosition(be.yildizgames.common.geometry.Point3D newPosition)voidsetRelativePosition(be.yildizgames.common.geometry.Point3D position)
-
-
-
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()
-
getRayProvider
public RayProvider getRayProvider()
-
-