Appearance
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?): RotatePointParameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| id | String/Number | uuid() | Object id identifier |
| enabled | Boolean | true | Object enabled state |
| direction | Boolean | false | Rotation direction, true for counterclockwise, false for clockwise |
| time | Number | 60 | Time required to complete one rotation (unit: seconds), controls speed |
| autoStopAngle | Number | - | Auto-stop angle value (0-360 degrees) |
| distance | Number | - | Can specify distance from camera to center point during rotation |
Properties
| Property | Type | Description |
|---|---|---|
| id | any | Object id identifier |
| enabled | any | Object enabled state |
| isStart | any | Whether currently rotating |
Methods
start
Start rotation
ts
start(point?): voidParameters:
point: Rotation center point
stop
Stop rotation
ts
stop(): voidclear
Clear vector data
ts
clear(): voiddestroy
Destroy object
ts
destroy(noDel?): voidaddEventListener
Bind events
ts
addEventListener(types, fn, context?): RotatePointclock_onTickHandler
Clock response time
ts
clock_onTickHandler(_event): voidonce
Event that is destroyed after being triggered once
ts
once(types, fn, context?): RotatePointremoveEventListener
Remove events
ts
removeEventListener(types, fn, context?): RotatePoint