|
M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
|
Inherits NativeObject.
Public Member Functions | |
| void | ReleaseCamera () |
| void | ReleaseCameraEntity () |
| void | LookAt (Vec3 position, Vec3 target, Vec3 upVector) |
| void | ScreenSpaceRayProjection (Vec2 screenPosition, ref Vec3 rayBegin, ref Vec3 rayEnd) |
| Casts a ray from screen point to the world/scene. | |
| bool | CheckEntityVisibility (GameEntity entity) |
| void | SetViewVolume (bool perspective, float dLeft, float dRight, float dBottom, float dTop, float dNear, float dFar) |
| void | GetNearPlanePoints (Vec3[] nearPlanePoints) |
| void | SetFovVertical (float verticalFov, float aspectRatioXY, float newDNear, float newDFar) |
| void | SetFovHorizontal (float horizontalFov, float aspectRatioXY, float newDNear, float newDFar) |
| void | GetViewProjMatrix (ref MatrixFrame viewProj) |
| float | GetFovVertical () |
| float | GetFovHorizontal () |
| float | GetAspectRatio () |
| void | FillParametersFrom (Camera otherCamera) |
| void | RenderFrustrum () |
| void | ViewportPointToWorldRay (ref Vec3 rayBegin, ref Vec3 rayEnd, Vec2 viewportPoint) |
| Vec3 | WorldPointToViewPortPoint (ref Vec3 worldPoint) |
| bool | EnclosesPoint (Vec3 pointInWorldSpace) |
Static Public Member Functions | |
| static Camera | CreateCamera () |
| static void | GetNearPlanePointsStatic (ref MatrixFrame cameraFrame, float verticalFov, float aspectRatioXY, float newDNear, float newDFar, Vec3[] nearPlanePoints) |
| static MatrixFrame | ConstructCameraFromPositionElevationBearing (Vec3 position, float elevation, float bearing) |
Properties | |
| GameEntity | Entity [get, set] |
| Vec3 | Position [get, set] |
| Vec3 | Direction [get] |
| MatrixFrame | Frame [get, set] |
| float | Near [get] |
| float | Far [get] |
| float | HorizontalFov [get] |
|
static |
| void TaleWorlds.Engine.Camera.ReleaseCamera | ( | ) |
| void TaleWorlds.Engine.Camera.ReleaseCameraEntity | ( | ) |
| void TaleWorlds.Engine.Camera.ScreenSpaceRayProjection | ( | Vec2 | screenPosition, |
| ref Vec3 | rayBegin, | ||
| ref Vec3 | rayEnd | ||
| ) |
| screenPosition | Position of the ray on the screen. {(x,y)| 0<=x<=1 and 0<=y<=1}. |
| rayBegin | Initial point of the ray. It lies on viewport/projection plane of the camera. |
| rayEnd | End point of the ray which is in the view frustum of the camera. It lies on the clipping plane of the camera. |
| bool TaleWorlds.Engine.Camera.CheckEntityVisibility | ( | GameEntity | entity | ) |
| void TaleWorlds.Engine.Camera.SetViewVolume | ( | bool | perspective, |
| float | dLeft, | ||
| float | dRight, | ||
| float | dBottom, | ||
| float | dTop, | ||
| float | dNear, | ||
| float | dFar | ||
| ) |
|
static |
| void TaleWorlds.Engine.Camera.GetNearPlanePoints | ( | Vec3[] | nearPlanePoints | ) |
| void TaleWorlds.Engine.Camera.SetFovVertical | ( | float | verticalFov, |
| float | aspectRatioXY, | ||
| float | newDNear, | ||
| float | newDFar | ||
| ) |
| void TaleWorlds.Engine.Camera.SetFovHorizontal | ( | float | horizontalFov, |
| float | aspectRatioXY, | ||
| float | newDNear, | ||
| float | newDFar | ||
| ) |
| void TaleWorlds.Engine.Camera.GetViewProjMatrix | ( | ref MatrixFrame | viewProj | ) |
| float TaleWorlds.Engine.Camera.GetFovVertical | ( | ) |
| float TaleWorlds.Engine.Camera.GetFovHorizontal | ( | ) |
| float TaleWorlds.Engine.Camera.GetAspectRatio | ( | ) |
| void TaleWorlds.Engine.Camera.FillParametersFrom | ( | Camera | otherCamera | ) |
| void TaleWorlds.Engine.Camera.RenderFrustrum | ( | ) |
| void TaleWorlds.Engine.Camera.ViewportPointToWorldRay | ( | ref Vec3 | rayBegin, |
| ref Vec3 | rayEnd, | ||
| Vec2 | viewportPoint | ||
| ) |
| bool TaleWorlds.Engine.Camera.EnclosesPoint | ( | Vec3 | pointInWorldSpace | ) |
|
static |
|
getset |
|
getset |
|
get |
|
getset |
|
get |
|
get |
|
get |