Class CollisionPolygon
Inheritance
CollisionPolygon
Assembly: SlipeServer.Server.dll
Syntax
public class CollisionPolygon : CollisionShape
Constructors
|
Edit this page
View Source
CollisionPolygon(Vector3, IEnumerable<Vector2>)
Declaration
public CollisionPolygon(Vector3 position, IEnumerable<Vector2> vertices)
Parameters
Properties
|
Edit this page
View Source
Height
Declaration
public Vector2 Height { get; set; }
Property Value
Methods
|
Edit this page
View Source
AddPoint(Vector2)
Declaration
public void AddPoint(Vector2 position)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
|
Edit this page
View Source
AddPoint(Vector2, int)
Declaration
public void AddPoint(Vector2 position, int index)
Parameters
|
Edit this page
View Source
AssociateWith(MtaServer)
Declaration
public CollisionPolygon AssociateWith(MtaServer server)
Parameters
Returns
|
Edit this page
View Source
GetPointPosition(int)
Declaration
public Vector2 GetPointPosition(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
Returns
|
Edit this page
View Source
GetPointsCount()
Declaration
public int GetPointsCount()
Returns
|
Edit this page
View Source
GetVertices()
Declaration
public IEnumerable<Vector2> GetVertices()
Returns
|
Edit this page
View Source
IsWithin(Vector3, byte?, ushort?)
Declaration
public override bool IsWithin(Vector3 position, byte? interior = null, ushort? dimension = null)
Parameters
Returns
Overrides
|
Edit this page
View Source
RemovePoint(int)
Declaration
public void RemovePoint(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
|
Edit this page
View Source
SetPointPosition(uint, Vector2)
Declaration
public void SetPointPosition(uint index, Vector2 position)
Parameters
Events
|
Edit this page
View Source
HeightChanged
Declaration
public event ElementChangedEventHandler<Vector2>? HeightChanged
Event Type
|
Edit this page
View Source
PointAdded
Declaration
public event ElementEventHandler<CollisionPolygonPointAddedChangedArgs>? PointAdded
Event Type
|
Edit this page
View Source
PointPositionChanged
Declaration
public event ElementEventHandler<CollisionPolygonPointPositionChangedArgs>? PointPositionChanged
Event Type
|
Edit this page
View Source
PointRemoved
Declaration
public event ElementEventHandler<CollisionPolygonPointRemovedChangedArgs>? PointRemoved
Event Type
Extension Methods