SmoothCameraFollow
class SmoothCameraFollow
This component makes one object follow another in a smoothed way.
public class SmoothCameraFollow extends Component
— Constructors (1) —
| Constructor | Description |
|---|---|
| SmoothCameraFollow() | Creates a new instance of SmoothCameraFollow. |
— Methods (12) —
| Name | Description |
|---|---|
| float getDistance() | Returns the current distance between this object and the target. |
| float getHeight() | Returns the current height position. |
| float getHeightDamping() | Returns the current height damping. |
| float getMaxHeightDistance() | Returns the current maximum height distance. |
| float getRotationDamping() | Returns the current rotation damping. |
| SpatialObject getTarget() | Returns the current target. |
| void setDistance(float value) | Sets the current distance between this object and the target. |
| void setHeight(float value) | Sets the current height position. |
| void setHeightDamping(float value) | Sets the current height damping. |
| void setMaxHeightDistance(float value) | Sets the current maximum height distance. |
| void setRotationDamping(float value) | Sets the current rotation damping. |
| void setTarget(SpatialObject value) | Sets the current target. |