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
Mostrar archivo Open project: gerich-home/box2dnet Class Usage Examples

Public Properties

Property Type Description
HasVertex0 bool
HasVertex3 bool
Vertex0 Box2D.Common.Vec2
Vertex1 Box2D.Common.Vec2
Vertex2 Box2D.Common.Vec2
Vertex3 Box2D.Common.Vec2

Public Methods

Method 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 method

public Clone ( ) : Shape
return Shape

ComputeAABB() public method

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

ComputeMass() public method

public ComputeMass ( MassData massData, float density ) : void
massData MassData
density float
return void

EdgeShape() public method

public EdgeShape ( ) : Box2D.Common
return Box2D.Common

Raycast() public method

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

Set() public method

public Set ( Vec2 v1, Vec2 v2 ) : void
v1 Box2D.Common.Vec2
v2 Box2D.Common.Vec2
return void

TestPoint() public method

public TestPoint ( Transform xf, Vec2 p ) : bool
xf Box2D.Common.Transform
p Box2D.Common.Vec2
return bool

Property Details

HasVertex0 public_oe property

public bool HasVertex0
return bool

HasVertex3 public_oe property

public bool HasVertex3
return bool

Vertex0 public_oe property

optional adjacent vertex 1. Used for smooth collision
public Vec2,Box2D.Common Vertex0
return Box2D.Common.Vec2

Vertex1 public_oe property

edge vertex 1
public Vec2,Box2D.Common Vertex1
return Box2D.Common.Vec2

Vertex2 public_oe property

edge vertex 2
public Vec2,Box2D.Common Vertex2
return Box2D.Common.Vec2

Vertex3 public_oe property

optional adjacent vertex 2. Used for smooth collision
public Vec2,Box2D.Common Vertex3
return Box2D.Common.Vec2