Camera
Classes
Interfaces
Type Aliases
Variables
MAX_ANGLEMAX_TILTMIN_ANGLEMIN_TILT
Functions
Type Aliases
CameraRotateFunction
Variables
- Camera.MAX_ANGLE
- Type
150
- Camera.MAX_TILT
- Type
45
- Camera.MIN_ANGLE
- Type
30
- Camera.MIN_TILT
- Type
-45
Functions
applyGravity
- Operators.Camera.applyGravity(view, pointObject, downVector, maxFallDistance)
- Arguments
This returns the final position of a point object when gravity is applied. If there are no floors to collide with, null is returned.
It is the caller’s responsibility to interpolate smooth motion if desired.
- Return type
Promise <Point3 | null>
buildCollisionRayConfig
- Operators.Camera.buildCollisionRayConfig(bimMask, maxWorldDistance)
- Arguments
bimMask (
BimMask()) – Restricts the objects the selection ray can select to the BIM types present in the mask.maxWorldDistance (
null | number()) – If non-null, this limits the distance the selection ray can travel to hit an object.
- Returns
A ray pick config object suitable for BIM collision tests.
- Return type
PickConfig
clamp
- Operators.Camera.clamp(value, min, max)
- Arguments
value (
number()) – Nonemin (
number()) – Nonemax (
number()) – None
- Return type
number
getDownAxis
normalizeDirections
- Operators.Camera.normalizeDirections(directions)
- Arguments
directions (
Set) – None
Normalizes a set of directions such that it does not contain opposing directions. If opposing directions do exist, then they cancel each other and are removed from the set.
- Return type
void
removeOpposing
- Operators.Camera.removeOpposing(set, x, y)
- Arguments
set (
Set) – The set to inspect and alter.x (
T()) – The value that cancels withy.y (
T()) – The value that cancels withx.
If the input set contains both
xandy, then bothxandyare removed from the set. Otherwise this function does nothing.- Return type
void
testWallCollision
- Operators.Camera.testWallCollision(view, position, movementVector, maxCollisionDistance)
- Arguments
Returns the point of collision or null if there is none.
- Return type
Promise <FaceSelectionItem | null>