C# Class Box2D.Collision.Shapes.CircleShape

A circle shape.
Inheritance: Shape
Afficher le fichier Open project: gerich-home/box2dnet Class Usage Examples

Méthodes publiques

Свойство Type Description
P Box2D.Common.Vec2

Méthodes publiques

Méthode 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 méthode

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

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

GetSupport() public méthode

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

GetSupportVertex() public méthode

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

GetVertex() public méthode

Get a vertex by index.
public GetVertex ( int index ) : Vec2
index int
Résultat Box2D.Common.Vec2

Raycast() public méthode

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

TestPoint() public méthode

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

Property Details

P public_oe property

public Vec2,Box2D.Common P
Résultat Box2D.Common.Vec2