Skip to content

RotatePoint (Camera Rotation Around Fixed Center Point)

Tool class for controlling camera rotation around a fixed center point.

Constructor

ts
new ge3d.matter.RotatePoint(options?): RotatePoint

Parameters

ParameterTypeDefaultDescription
idString/Numberuuid()Object id identifier
enabledBooleantrueObject enabled state
directionBooleanfalseRotation direction, true for counterclockwise, false for clockwise
timeNumber60Time required to complete one rotation (unit: seconds), controls speed
autoStopAngleNumber-Auto-stop angle value (0-360 degrees)
distanceNumber-Can specify distance from camera to center point during rotation

Properties

PropertyTypeDescription
idanyObject id identifier
enabledanyObject enabled state
isStartanyWhether currently rotating

Methods

start

Start rotation

ts
start(point?): void

Parameters:

  • point: Rotation center point

stop

Stop rotation

ts
stop(): void

clear

Clear vector data

ts
clear(): void

destroy

Destroy object

ts
destroy(noDel?): void

addEventListener

Bind events

ts
addEventListener(types, fn, context?): RotatePoint

clock_onTickHandler

Clock response time

ts
clock_onTickHandler(_event): void

once

Event that is destroyed after being triggered once

ts
once(types, fn, context?): RotatePoint

removeEventListener

Remove events

ts
removeEventListener(types, fn, context?): RotatePoint