Click or drag to resize
XDL

NXPlanetViewSetSunFollowCamera Method

태양의 위치를 카메라의 위치와 동일하게 설정할지를 설정한다. Planet3D 모드에서만 지원

Namespace:  Pixoneer.NXDL.NXPlanet
Assembly:  NXPlanet (in NXPlanet.dll) Version: 2.0.3.31
Syntax
C#
public void SetSunFollowCamera(
	bool follow
)

Parameters

follow
Type: SystemBoolean
[In] true이면 태양의 위치를 카메라 위치로 설정하여 대기효과 반영, false이면 SetSunPosition으로 설정된 태양 위치로 대기효과 반영
Examples
nxPlanetView3D.EnableGroundEffect = true;
nxPlanetView3D.SetSunFollowCamera(false);     // 태양 위치는 SetSunPostion에 설정된 위치로 고정

XGeoPoint sunPos = XGeoPoint.FromDegree(180.0, 0.0, XConstants.EarthR1);   
nxPlanetView3D.SetSunPosition(sunPos);     // 태양위치 설정
nxPlanetView3D.RefreshScreen();
See Also