P3D-Legacy/P3D/Screens/MainMenu/MainMenuEntity.vb

26 lines
701 B
VB.net
Raw Normal View History

2018-02-24 09:32:04 +01:00
Namespace Screens.MainMenu
Public Class MainMenuEntity
Inherits GameDevCommon.Rendering.Base3DObject(Of VertexPositionNormalTexture)
Public Position As Vector3
Public Rotation As Vector3
Public ToBeRemoved As Boolean
Public Sub New(position As Vector3)
Me.Position = position
Me.Rotation = Vector3.Zero
End Sub
Protected Overrides Sub CreateWorld()
World = Matrix.CreateRotationX(Rotation.X) *
Matrix.CreateRotationY(Rotation.Y) *
Matrix.CreateRotationZ(Rotation.Z) *
Matrix.CreateTranslation(Position)
End Sub
End Class
End Namespace