P3D-Legacy/P3D/Entites/Enviroment/WallBill.vb

22 lines
546 B
VB.net
Raw Normal View History

2016-09-07 18:50:38 +02:00
Public Class WallBill
Inherits Entity
2016-12-08 15:16:51 +01:00
Protected Overrides Function CalculateCameraDistance(CPosition As Vector3) as Single
2016-12-08 15:26:53 +01:00
Return MyBase.CalculateCameraDistance(CPosition) - 0.4F
2016-12-08 15:16:51 +01:00
End Function
2016-09-07 18:50:38 +02:00
Public Overrides Sub UpdateEntity()
If Me.Rotation.Y <> Screen.Camera.Yaw Then
Me.Rotation.Y = Screen.Camera.Yaw
CreatedWorld = False
End If
MyBase.UpdateEntity()
End Sub
Public Overrides Sub Render()
Me.Draw(Me.Model, Textures, False)
End Sub
End Class