Property | Type | Description | |
---|---|---|---|
Right | Vector3 | ||
Up | Vector3 |
Method | Description | |
---|---|---|
ChaseCamera ( |
Constructor that initialize the chase camera properties and set the mouse to the middle of the screen
|
|
Move ( Vector3 NewFollowTargetPosition, Vector3 NewFollowTargetRotation ) : void |
Move the chase camera to follow the chased position and rotation
|
|
Rotate ( Vector3 RotationChange ) : void |
Rotate the camera with the specifed rotate change vector
|
|
Update ( |
Allows the component to run logic.
|
|
resetOffsets ( ) : void | ||
setOffsetsFor1stPerson ( ) : void |
Method | Description | |
---|---|---|
recalculatePosition ( ) : Matrix |
public ChaseCamera ( |
||
game | instance of MyGame this game component is attched to | |
PositionOffset | Vector3 | offset of the position from the chasee |
TargetOffset | Vector3 | offset of the target from the chasee |
RelativeCameraRotation | Vector3 | reletaive camera rotation with respect to the chasee |
return | System |
public Move ( Vector3 NewFollowTargetPosition, Vector3 NewFollowTargetRotation ) : void | ||
NewFollowTargetPosition | Vector3 | |
NewFollowTargetRotation | Vector3 | the followed new target rotation |
return | void |
public Rotate ( Vector3 RotationChange ) : void | ||
RotationChange | Vector3 | the change in the rotation |
return | void |
public Update ( |
||
gameTime | The gametime. | |
return | void |