Search
Preparing search index...
The search index is not available
@nativewrappers/client
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@nativewrappers/client
Camera
Class Camera
Hierarchy
Camera
Index
Constructors
constructor
Properties
handle
shake
Names
Accessors
Depth
Of
Field
Strength
Direction
Far
Clip
Far
Depth
Of
Field
Field
Of
View
Forward
Vector
Is
Active
Is
Interpolating
Is
Shaking
Motion
Blur
Strength
Near
Clip
Near
Depth
Of
Field
Position
Rotation
Shake
Amplitude
Methods
attach
To
delete
detach
exists
interp
To
play
Anim
point
At
shake
stop
Pointing
stop
Shaking
Constructors
constructor
new
Camera
(
handle
:
number
)
:
Camera
Parameters
handle:
number
Returns
Camera
Properties
Private
handle
handle
:
number
Private
Readonly
shake
Names
shake
Names
:
string
[]
= ...
Accessors
Depth
Of
Field
Strength
set
DepthOfFieldStrength
(
strength
:
number
)
:
void
Parameters
strength:
number
Returns
void
Direction
get
Direction
(
)
:
Vector3
set
Direction
(
direction
:
Vector3
)
:
void
Gets the direction the camera is facing. Same as ForwardVector
Returns
Vector3
Gets the direction the camera is facing. Same as ForwardVector
Parameters
direction:
Vector3
Returns
void
Far
Clip
get
FarClip
(
)
:
number
set
FarClip
(
farClip
:
number
)
:
void
Returns
number
Parameters
farClip:
number
Returns
void
Far
Depth
Of
Field
get
FarDepthOfField
(
)
:
number
set
FarDepthOfField
(
farDepthOfField
:
number
)
:
void
Returns
number
Parameters
farDepthOfField:
number
Returns
void
Field
Of
View
get
FieldOfView
(
)
:
number
set
FieldOfView
(
fieldOfView
:
number
)
:
void
Returns
number
Parameters
fieldOfView:
number
Returns
void
Forward
Vector
get
ForwardVector
(
)
:
Vector3
Returns
Vector3
Is
Active
get
IsActive
(
)
:
boolean
set
IsActive
(
active
:
boolean
)
:
void
Returns
boolean
Parameters
active:
boolean
Returns
void
Is
Interpolating
get
IsInterpolating
(
)
:
boolean
Returns
boolean
Is
Shaking
get
IsShaking
(
)
:
boolean
Returns
boolean
Motion
Blur
Strength
set
MotionBlurStrength
(
strength
:
number
)
:
void
Parameters
strength:
number
Returns
void
Near
Clip
get
NearClip
(
)
:
number
set
NearClip
(
nearClip
:
number
)
:
void
Returns
number
Parameters
nearClip:
number
Returns
void
Near
Depth
Of
Field
set
NearDepthOfField
(
nearDepthOfField
:
number
)
:
void
Parameters
nearDepthOfField:
number
Returns
void
Position
get
Position
(
)
:
Vector3
set
Position
(
position
:
Vector3
)
:
void
Returns
Vector3
Parameters
position:
Vector3
Returns
void
Rotation
get
Rotation
(
)
:
Vector3
set
Rotation
(
rotation
:
Vector3
)
:
void
Returns
Vector3
Parameters
rotation:
Vector3
Returns
void
Shake
Amplitude
set
ShakeAmplitude
(
amplitude
:
number
)
:
void
Parameters
amplitude:
number
Returns
void
Methods
attach
To
attach
To
(
object
:
Entity
|
PedBone
, offset
:
Vector3
)
:
void
Parameters
object:
Entity
|
PedBone
offset:
Vector3
Returns
void
delete
delete
(
)
:
void
Returns
void
detach
detach
(
)
:
void
Returns
void
exists
exists
(
)
:
boolean
Returns
boolean
interp
To
interp
To
(
to
:
Camera
, duration
:
number
, easePosition
:
boolean
, easeRotation
:
boolean
)
:
void
Parameters
to:
Camera
duration:
number
easePosition:
boolean
easeRotation:
boolean
Returns
void
play
Anim
play
Anim
(
animName
:
string
, animDict
:
string
, position
:
Vector3
, rotation
:
Vector3
)
:
Promise
<
void
>
Parameters
animName:
string
animDict:
string
position:
Vector3
rotation:
Vector3
Returns
Promise
<
void
>
point
At
point
At
(
target
:
Vector3
|
Entity
|
PedBone
, offset
?:
Vector3
)
:
void
Parameters
target:
Vector3
|
Entity
|
PedBone
offset:
Vector3
= ...
Returns
void
shake
shake
(
shakeType
:
CameraShake
, amplitude
:
number
)
:
void
Parameters
shakeType:
CameraShake
amplitude:
number
Returns
void
stop
Pointing
stop
Pointing
(
)
:
void
Returns
void
stop
Shaking
stop
Shaking
(
)
:
void
Returns
void
Exports
Camera
constructor
handle
shake
Names
Depth
Of
Field
Strength
Direction
Far
Clip
Far
Depth
Of
Field
Field
Of
View
Forward
Vector
Is
Active
Is
Interpolating
Is
Shaking
Motion
Blur
Strength
Near
Clip
Near
Depth
Of
Field
Position
Rotation
Shake
Amplitude
attach
To
delete
detach
exists
interp
To
play
Anim
point
At
shake
stop
Pointing
stop
Shaking
Generated using
TypeDoc
Gets the direction the camera is facing. Same as ForwardVector