SimulationModel

시뮬레이션 모델 클래스.
Simulation Model Class.

new Ditap.SimulationModel(viewer, options)

Name Type Description
viewer DitapViewer 사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
options object 각각 다음과 같은 속성을 가진 객체.
Object with the following properties.
Name Type Description
id string optional 모델의 고유 아이디.
Unique ID of the model.
name string optional 모델의 이름.
The name of the model.
position Cartesian3 optional 모델의 좌표.
Coordinates of the model.
rotation Quaternion optional 모델의 회전값.
Model's rotation value.
speed number optional 모델의 이동 속도.
Model's movement speed
model Entity optional 모델의 가시화 엔티티. ※ 사용자가 직접 제어 시 오류가 발생할 수 있습니다.
Visualization entity of an model. ※ Errors may occur when users directly control it.
show boolean optional 모델의 가시화 여부.
Whether the model is visible.
debugShowAxis boolean optional 이 속성은 디버깅용으로만 사용되며, 실제 운영에는 최적화되지 않았습니다.
true이면 모델의 x, y, z축을 가시화합니다. 모델의 움직임을 좀 더 직관적으로 확인할 수 있습니다.
This property is for debugging purposes only and is not optimized for production use.
If true, the model's x, y, and z axes will be visible. This allows for a more intuitive way to see the model's movements.

Members

debugShowAxis : boolean

이 속성은 디버깅용으로만 사용되며, 실제 운영에는 최적화되지 않았습니다.
true이면 모델의 x, y, z축을 가시화합니다.
모델의 움직임을 좀 더 직관적으로 확인할 수 있습니다.
This property is for debugging purposes only and is not optimized for production use.
If true, the model's x, y, and z axes will be visible. This allows for a more intuitive way to see the model's movements.
Whether to visualize the direction axis of the simulation model.

readonly id : string

시뮬레이션모델 아이디.
SimulationModel id.

model : Entity

시뮬레이션 모델.
Simulation model.

name : string

시뮬레이션모델 이름.
SimulationModel name.

position : Cartesian3

시뮬레이션모델 좌표.
SimulationModel coordinates.

rotation : Quaternion

시뮬레이션모델 회전값.
SimulationModel rotation values.

show : boolean

시뮬레이션모델 가시화 여부.
Whether the simulation model is visualized.

speed : number

시뮬레이션모델 속도.
SimulationModel speed.

readonly viewer : DitapViewer

사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.

Methods

destroy()

인스턴스 제거.
Remove instance.