C# Класс Box2D.Collision.Shapes.CircleShape

A circle shape.
Наследование: Shape
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
P Box2D.Common.Vec2

Открытые методы

Метод Описание
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

Описание методов

CircleShape() публичный Метод

this is used internally, instead use {@link Body#createShape(ShapeDef)} with a {@link CircleDef}
public CircleShape ( ) : System.Diagnostics
Результат System.Diagnostics

Clone() публичный Метод

public Clone ( ) : Shape
Результат Shape

ComputeAABB() публичный Метод

public ComputeAABB ( AABB aabb, Transform transform, int childIndex ) : void
aabb AABB
transform Box2D.Common.Transform
childIndex int
Результат void

ComputeMass() публичный Метод

public ComputeMass ( MassData massData, float density ) : void
massData MassData
density float
Результат void

GetSupport() публичный Метод

Get the supporting vertex index in the given direction.
public GetSupport ( Vec2 d ) : int
d Box2D.Common.Vec2
Результат int

GetSupportVertex() публичный Метод

Get the supporting vertex in the given direction.
public GetSupportVertex ( Vec2 d ) : Vec2
d Box2D.Common.Vec2
Результат Box2D.Common.Vec2

GetVertex() публичный Метод

Get a vertex by index.
public GetVertex ( int index ) : Vec2
index int
Результат Box2D.Common.Vec2

Raycast() публичный Метод

public Raycast ( RayCastOutput output, RayCastInput input, Transform transform, int childIndex ) : bool
output RayCastOutput
input RayCastInput
transform Box2D.Common.Transform
childIndex int
Результат bool

TestPoint() публичный Метод

public TestPoint ( Transform transform, Vec2 p ) : bool
transform Box2D.Common.Transform
p Box2D.Common.Vec2
Результат bool

Описание свойств

P публичное свойство

public Vec2,Box2D.Common P
Результат Box2D.Common.Vec2