C# Class Box2DX.Collision.EdgeShape

Inheritance: Shape
Mostra file Open project: KrugerHeavyIndustries/box2d-unity Class Usage Examples

Public Properties

Property Type Description
_cornerConvex1 bool
_cornerConvex2 bool
_cornerDir1 System.Vector2
_cornerDir2 System.Vector2
_direction System.Vector2
_length float
_nextEdge EdgeShape
_normal System.Vector2
_prevEdge EdgeShape
_v1 System.Vector2
_v2 System.Vector2

Public Methods

Method Description
ComputeAABB ( AABB &aabb, Box2DX.Common.Transform xf ) : void
ComputeMass ( MassData &massData, float density ) : void
ComputeSubmergedArea ( System.Vector2 normal, float offset, Box2DX.Common.Transform xf, System.Vector2 &c ) : float
ComputeSweepRadius ( System.Vector2 pivot ) : float
Dispose ( ) : void
EdgeShape ( ) : System
GetSupport ( System.Vector2 d ) : int
GetSupportVertex ( System.Vector2 d ) : System.Vector2
GetVertex ( int index ) : System.Vector2
Set ( System.Vector2 v1, System.Vector2 v2 ) : void
SetNextEdge ( EdgeShape edge, System.Vector2 cornerDir, bool convex ) : void
SetPrevEdge ( EdgeShape edge, System.Vector2 cornerDir, bool convex ) : void
TestPoint ( Box2DX.Common.Transform xf, System.Vector2 p ) : bool
TestSegment ( Box2DX.Common.Transform xf, float &lambda, System.Vector2 &normal, Segment segment, float maxLambda ) : SegmentCollide

Method Details

ComputeAABB() public method

public ComputeAABB ( AABB &aabb, Box2DX.Common.Transform xf ) : void
aabb AABB
xf Box2DX.Common.Transform
return void

ComputeMass() public method

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

ComputeSubmergedArea() public method

public ComputeSubmergedArea ( System.Vector2 normal, float offset, Box2DX.Common.Transform xf, System.Vector2 &c ) : float
normal System.Vector2
offset float
xf Box2DX.Common.Transform
c System.Vector2
return float

ComputeSweepRadius() public method

public ComputeSweepRadius ( System.Vector2 pivot ) : float
pivot System.Vector2
return float

Dispose() public method

public Dispose ( ) : void
return void

EdgeShape() public method

public EdgeShape ( ) : System
return System

GetSupport() public method

public GetSupport ( System.Vector2 d ) : int
d System.Vector2
return int

GetSupportVertex() public method

public GetSupportVertex ( System.Vector2 d ) : System.Vector2
d System.Vector2
return System.Vector2

GetVertex() public method

public GetVertex ( int index ) : System.Vector2
index int
return System.Vector2

Set() public method

public Set ( System.Vector2 v1, System.Vector2 v2 ) : void
v1 System.Vector2
v2 System.Vector2
return void

SetNextEdge() public method

public SetNextEdge ( EdgeShape edge, System.Vector2 cornerDir, bool convex ) : void
edge EdgeShape
cornerDir System.Vector2
convex bool
return void

SetPrevEdge() public method

public SetPrevEdge ( EdgeShape edge, System.Vector2 cornerDir, bool convex ) : void
edge EdgeShape
cornerDir System.Vector2
convex bool
return void

TestPoint() public method

public TestPoint ( Box2DX.Common.Transform xf, System.Vector2 p ) : bool
xf Box2DX.Common.Transform
p System.Vector2
return bool

TestSegment() public method

public TestSegment ( Box2DX.Common.Transform xf, float &lambda, System.Vector2 &normal, Segment segment, float maxLambda ) : SegmentCollide
xf Box2DX.Common.Transform
lambda float
normal System.Vector2
segment Segment
maxLambda float
return SegmentCollide

Property Details

_cornerConvex1 public_oe property

public bool _cornerConvex1
return bool

_cornerConvex2 public_oe property

public bool _cornerConvex2
return bool

_cornerDir1 public_oe property

public Vector2,System _cornerDir1
return System.Vector2

_cornerDir2 public_oe property

public Vector2,System _cornerDir2
return System.Vector2

_direction public_oe property

public Vector2,System _direction
return System.Vector2

_length public_oe property

public float _length
return float

_nextEdge public_oe property

public EdgeShape,Box2DX.Collision _nextEdge
return EdgeShape

_normal public_oe property

public Vector2,System _normal
return System.Vector2

_prevEdge public_oe property

public EdgeShape,Box2DX.Collision _prevEdge
return EdgeShape

_v1 public_oe property

public Vector2,System _v1
return System.Vector2

_v2 public_oe property

public Vector2,System _v2
return System.Vector2