C# Class FarseerPhysics.Collision.Shapes.EdgeShape

A line segment (edge) Shape. These can be connected in chains or loops to other edge Shapes. The connectivity information is used to ensure correct contact normals.
Inheritance: Shape
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
hasVertex0 bool
hasVertex3 bool
vertex0 UnityEngine.Vector2
vertex3 UnityEngine.Vector2

Méthodes publiques

Méthode Description
CompareTo ( EdgeShape shape ) : bool
EdgeShape ( Vector2 start, Vector2 end ) : FarseerPhysics.Common

Create a new EdgeShape with the specified start and end.

Set ( Vector2 start, Vector2 end ) : void

Set this as an isolated edge.

clone ( ) : Shape
computeAABB ( AABB &aabb, Transform &transform, int childIndex ) : void
computeSubmergedArea ( Vector2 &normal, float offset, Transform &xf, Vector2 &sc ) : float
rayCast ( RayCastOutput &output, RayCastInput &input, Transform &transform, int childIndex ) : bool
testPoint ( Transform &transform, Vector2 &point ) : bool

Méthodes protégées

Méthode Description
computeProperties ( ) : void

Private Methods

Méthode Description
EdgeShape ( ) : FarseerPhysics.Common

Method Details

CompareTo() public méthode

public CompareTo ( EdgeShape shape ) : bool
shape EdgeShape
Résultat bool

EdgeShape() public méthode

Create a new EdgeShape with the specified start and end.
public EdgeShape ( Vector2 start, Vector2 end ) : FarseerPhysics.Common
start UnityEngine.Vector2 The start of the edge.
end UnityEngine.Vector2 The end of the edge.
Résultat FarseerPhysics.Common

Set() public méthode

Set this as an isolated edge.
public Set ( Vector2 start, Vector2 end ) : void
start UnityEngine.Vector2 The start.
end UnityEngine.Vector2 The end.
Résultat void

clone() public méthode

public clone ( ) : Shape
Résultat Shape

computeAABB() public méthode

public computeAABB ( AABB &aabb, Transform &transform, int childIndex ) : void
aabb AABB
transform UnityEngine.Transform
childIndex int
Résultat void

computeProperties() protected méthode

protected computeProperties ( ) : void
Résultat void

computeSubmergedArea() public méthode

public computeSubmergedArea ( Vector2 &normal, float offset, Transform &xf, Vector2 &sc ) : float
normal UnityEngine.Vector2
offset float
xf UnityEngine.Transform
sc UnityEngine.Vector2
Résultat float

rayCast() public méthode

public rayCast ( RayCastOutput &output, RayCastInput &input, Transform &transform, int childIndex ) : bool
output RayCastOutput
input RayCastInput
transform UnityEngine.Transform
childIndex int
Résultat bool

testPoint() public méthode

public testPoint ( Transform &transform, Vector2 &point ) : bool
transform UnityEngine.Transform
point UnityEngine.Vector2
Résultat bool

Property Details

hasVertex0 public_oe property

Is true if the edge is connected to an adjacent vertex before vertex 1.
public bool hasVertex0
Résultat bool

hasVertex3 public_oe property

Is true if the edge is connected to an adjacent vertex after vertex2.
public bool hasVertex3
Résultat bool

vertex0 public_oe property

Optional adjacent vertices. These are used for smooth collision.
public Vector2,UnityEngine vertex0
Résultat UnityEngine.Vector2

vertex3 public_oe property

Optional adjacent vertices. These are used for smooth collision.
public Vector2,UnityEngine vertex3
Résultat UnityEngine.Vector2