Definition at line 81 of file ConvexHull.cs.
◆ ConvexHull()
Barotrauma.Lights.ConvexHull.ConvexHull |
( |
Rectangle |
rect, |
|
|
bool |
isHorizontal, |
|
|
MapEntity |
parent |
|
) |
| |
◆ CalculateLosVertices()
void Barotrauma.Lights.ConvexHull.CalculateLosVertices |
( |
Vector2 |
lightSourcePos | ) |
|
◆ DebugDraw()
void Barotrauma.Lights.ConvexHull.DebugDraw |
( |
SpriteBatch |
spriteBatch | ) |
|
◆ GetHullsInRange()
static List<ConvexHull> Barotrauma.Lights.ConvexHull.GetHullsInRange |
( |
Vector2 |
position, |
|
|
float |
range, |
|
|
Submarine |
ParentSub |
|
) |
| |
|
static |
◆ GetVisibleSegments()
void Barotrauma.Lights.ConvexHull.GetVisibleSegments |
( |
Vector2 |
viewPosition, |
|
|
List< Segment > |
visibleSegments |
|
) |
| |
Returns the segments that are facing towards viewPosition
Definition at line 470 of file ConvexHull.cs.
◆ Intersects()
bool Barotrauma.Lights.ConvexHull.Intersects |
( |
Rectangle |
rect | ) |
|
◆ LosIntersects()
bool Barotrauma.Lights.ConvexHull.LosIntersects |
( |
Vector2 |
pos1, |
|
|
Vector2 |
pos2 |
|
) |
| |
◆ Move()
void Barotrauma.Lights.ConvexHull.Move |
( |
Vector2 |
amount | ) |
|
◆ RecalculateAll()
static void Barotrauma.Lights.ConvexHull.RecalculateAll |
( |
Submarine |
sub | ) |
|
|
static |
◆ RefreshWorldPositions()
void Barotrauma.Lights.ConvexHull.RefreshWorldPositions |
( |
| ) |
|
◆ Remove()
void Barotrauma.Lights.ConvexHull.Remove |
( |
| ) |
|
◆ Rotate()
void Barotrauma.Lights.ConvexHull.Rotate |
( |
Vector2 |
origin, |
|
|
float |
amount |
|
) |
| |
◆ SetVertices()
void Barotrauma.Lights.ConvexHull.SetVertices |
( |
Vector2[] |
points, |
|
|
Vector2[] |
losPoints, |
|
|
bool |
mergeOverlappingSegments = true , |
|
|
Matrix? |
rotationMatrix = null |
|
) |
| |
◆ HullLists
◆ MaxMergeLosVerticesDist
float? Barotrauma.Lights.ConvexHull.MaxMergeLosVerticesDist |
Overrides the maximum distance a LOS vertex can be moved to make it align with a nearby LOS segment
Definition at line 104 of file ConvexHull.cs.
◆ penumbraEffect
BasicEffect Barotrauma.Lights.ConvexHull.penumbraEffect |
|
static |
◆ shadowEffect
BasicEffect Barotrauma.Lights.ConvexHull.shadowEffect |
|
static |
◆ BoundingBox
Rectangle Barotrauma.Lights.ConvexHull.BoundingBox |
|
get |
◆ Enabled
bool Barotrauma.Lights.ConvexHull.Enabled |
|
getset |
◆ IsInvalid
bool Barotrauma.Lights.ConvexHull.IsInvalid |
|
get |
◆ LastVertexChangeTime
float Barotrauma.Lights.ConvexHull.LastVertexChangeTime |
|
get |
The elapsed gametime when the vertices of this hull last changed
Definition at line 128 of file ConvexHull.cs.
◆ ParentEntity
MapEntity Barotrauma.Lights.ConvexHull.ParentEntity |
|
get |
◆ PenumbraVertexCount
int Barotrauma.Lights.ConvexHull.PenumbraVertexCount |
|
get |
◆ PenumbraVertices
VertexPositionTexture [] Barotrauma.Lights.ConvexHull.PenumbraVertices |
|
get |
◆ ShadowVertexCount
int Barotrauma.Lights.ConvexHull.ShadowVertexCount |
|
get |
◆ ShadowVertices
VertexPositionColor [] Barotrauma.Lights.ConvexHull.ShadowVertices |
|
get |