CameraData
ZEPETO.Character.Controller.CameraData
Represents the initial configuration for a ZepetoCamera
.
Hierarchy
↳
CameraData
Constructors
constructor
• new CameraData()
Overrides
System.Object.constructor
Properties
cameraPrefab
• cameraPrefab: GameObject
Prefab to initialize ZepetoCamera
.
collisionTimeThreshold
• collisionTimeThreshold: number
Time threshold for camera collision detection, affecting how quickly the camera responds to collisions.
layer
• layer: LayerMask
Defines the layers with which the camera can collide.
lockXAxis
• lockXAxis: boolean
Indicates whether the camera's X-axis rotation is locked.
maxPitch
• maxPitch: number
Maximum vertical angle at which the camera rotates around the target.
maxZoomDistance
• maxZoomDistance: number
Default maximum distance the camera can zoom out from the target.
minPitch
• minPitch: number
Minimum vertical angle at which the camera rotates around the target.
minZoomDistance
• minZoomDistance: number
Default minimum distance the camera can zoom in towards the target.
offset
• offset: Vector3
Default offset of the camera from its target.
Accessors
characterCulling
• get
characterCulling(): boolean
Indicates whether to enable character culling to prevent rendering issues at close camera distances.
Returns
boolean
• set
characterCulling(value
): void
Indicates whether to enable character culling to prevent rendering issues at close camera distances.
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
rotationDampSpeed
• get
rotationDampSpeed(): number
Interpolation speed for rotation.
Returns
number
• set
rotationDampSpeed(value
): void
Interpolation speed for rotation.
Parameters
Name | Type |
---|---|
value | number |
Returns
void
rotationSpeed
• get
rotationSpeed(): number
Speed of rotation.
Returns
number
• set
rotationSpeed(value
): void
Speed of rotation.
Parameters
Name | Type |
---|---|
value | number |
Returns
void
targetScaleWeight
• get
targetScaleWeight(): number
Weight applied to the target's scale to adjust the camera's position and behavior.
Returns
number
• set
targetScaleWeight(value
): void
Weight applied to the target's scale to adjust the camera's position and behavior.
Parameters
Name | Type |
---|---|
value | number |
Returns
void
zoomDampSpeed
• get
zoomDampSpeed(): number
Interpolation speed for zooming in and out.
Returns
number
• set
zoomDampSpeed(value
): void
Interpolation speed for zooming in and out.
Parameters
Name | Type |
---|---|
value | number |
Returns
void
zoomSpeed
• get
zoomSpeed(): number
Speed of zooming in and out.
Returns
number
• set
zoomSpeed(value
): void
Speed of zooming in and out.
Parameters
Name | Type |
---|---|
value | number |
Returns
void