C# Class Box2D.Collision.Shapes.CircleShape

A circle shape.
Inheritance: Shape
Exibir arquivo Open project: gerich-home/box2dnet Class Usage Examples

Public Properties

Property Type Description
P Box2D.Common.Vec2

Public Methods

Method Description
CircleShape ( ) : System.Diagnostics

this is used internally, instead use {@link Body#createShape(ShapeDef)} with a {@link CircleDef}

Clone ( ) : Shape
ComputeAABB ( AABB aabb, Transform transform, int childIndex ) : void
ComputeMass ( MassData massData, float density ) : void
GetSupport ( Vec2 d ) : int

Get the supporting vertex index in the given direction.

GetSupportVertex ( Vec2 d ) : Vec2

Get the supporting vertex in the given direction.

GetVertex ( int index ) : Vec2

Get a vertex by index.

Raycast ( RayCastOutput output, RayCastInput input, Transform transform, int childIndex ) : bool
TestPoint ( Transform transform, Vec2 p ) : bool

Method Details

CircleShape() public method

this is used internally, instead use {@link Body#createShape(ShapeDef)} with a {@link CircleDef}
public CircleShape ( ) : System.Diagnostics
return System.Diagnostics

Clone() public method

public Clone ( ) : Shape
return Shape

ComputeAABB() public method

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

ComputeMass() public method

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

GetSupport() public method

Get the supporting vertex index in the given direction.
public GetSupport ( Vec2 d ) : int
d Box2D.Common.Vec2
return int

GetSupportVertex() public method

Get the supporting vertex in the given direction.
public GetSupportVertex ( Vec2 d ) : Vec2
d Box2D.Common.Vec2
return Box2D.Common.Vec2

GetVertex() public method

Get a vertex by index.
public GetVertex ( int index ) : Vec2
index int
return Box2D.Common.Vec2

Raycast() public method

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

TestPoint() public method

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

Property Details

P public_oe property

public Vec2,Box2D.Common P
return Box2D.Common.Vec2