I have noticed that when you use the command RotateEntity with a light it works only with Pitch.
Given values:
Pitch: 90
Yaw: 20
Roll: 25
Returned values with EntityPitch, EntityYaw, and EntityRoll commands:
Pitch: 90
Yaw: -180
Rol: 180
Some code:
Graphics3D 640, 480, 0, 2
cam =CreateCamera()
h = CreateLight()
RotateEntity h, 90, 20, 25
DebugLog "CHECK: Pitch: " + EntityPitch(h) + " | Yaw: " + EntityYaw(h) + " | Roll: " + EntityRoll(h)
WaitKey()
End
Computer Info:
DX9 C
ATI Radeon X1950 512 MB - Latest drivers
B3D Version: 1.98, Userlibs: none
AMD Athlon 64 X2
WinXP Pro
[update]
Actually the rotation bug applies to any entity, not just lights.
Given values:
Pitch: 90
Yaw: 20
Roll: 25
Returned values with EntityPitch, EntityYaw, and EntityRoll commands:
Pitch: 90
Yaw: -180
Rol: 180
Some code:
Graphics3D 640, 480, 0, 2
cam =CreateCamera()
h = CreateLight()
RotateEntity h, 90, 20, 25
DebugLog "CHECK: Pitch: " + EntityPitch(h) + " | Yaw: " + EntityYaw(h) + " | Roll: " + EntityRoll(h)
WaitKey()
End
Computer Info:
DX9 C
ATI Radeon X1950 512 MB - Latest drivers
B3D Version: 1.98, Userlibs: none
AMD Athlon 64 X2
WinXP Pro
[update]
Actually the rotation bug applies to any entity, not just lights.