C# Class Box2D.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: gerich-home/box2dnet Class Usage Examples

Méthodes publiques

Свойство Type Description
HasVertex0 bool
HasVertex3 bool
Vertex0 Box2D.Common.Vec2
Vertex1 Box2D.Common.Vec2
Vertex2 Box2D.Common.Vec2
Vertex3 Box2D.Common.Vec2

Méthodes publiques

Méthode Description
Clone ( ) : Shape
ComputeAABB ( AABB aabb, Transform xf, int childIndex ) : void
ComputeMass ( MassData massData, float density ) : void
EdgeShape ( ) : Box2D.Common
Raycast ( RayCastOutput output, RayCastInput input, Transform xf, int childIndex ) : bool
Set ( Vec2 v1, Vec2 v2 ) : void
TestPoint ( Transform xf, Vec2 p ) : bool

Method Details

Clone() public méthode

public Clone ( ) : Shape
Résultat Shape

ComputeAABB() public méthode

public ComputeAABB ( AABB aabb, Transform xf, int childIndex ) : void
aabb AABB
xf Box2D.Common.Transform
childIndex int
Résultat void

ComputeMass() public méthode

public ComputeMass ( MassData massData, float density ) : void
massData MassData
density float
Résultat void

EdgeShape() public méthode

public EdgeShape ( ) : Box2D.Common
Résultat Box2D.Common

Raycast() public méthode

public Raycast ( RayCastOutput output, RayCastInput input, Transform xf, int childIndex ) : bool
output RayCastOutput
input RayCastInput
xf Box2D.Common.Transform
childIndex int
Résultat bool

Set() public méthode

public Set ( Vec2 v1, Vec2 v2 ) : void
v1 Box2D.Common.Vec2
v2 Box2D.Common.Vec2
Résultat void

TestPoint() public méthode

public TestPoint ( Transform xf, Vec2 p ) : bool
xf Box2D.Common.Transform
p Box2D.Common.Vec2
Résultat bool

Property Details

HasVertex0 public_oe property

public bool HasVertex0
Résultat bool

HasVertex3 public_oe property

public bool HasVertex3
Résultat bool

Vertex0 public_oe property

optional adjacent vertex 1. Used for smooth collision
public Vec2,Box2D.Common Vertex0
Résultat Box2D.Common.Vec2

Vertex1 public_oe property

edge vertex 1
public Vec2,Box2D.Common Vertex1
Résultat Box2D.Common.Vec2

Vertex2 public_oe property

edge vertex 2
public Vec2,Box2D.Common Vertex2
Résultat Box2D.Common.Vec2

Vertex3 public_oe property

optional adjacent vertex 2. Used for smooth collision
public Vec2,Box2D.Common Vertex3
Résultat Box2D.Common.Vec2