C# Класс Project290.Physics.Collision.Shapes.CircleShape

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

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

Свойство Тип Описание
Position Vector2

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

Метод Описание
CircleShape ( float radius, float density ) : System
Clone ( ) : Shape
ComputeAABB ( AABB &aabb, Transform &transform, int childIndex ) : void

Given a transform, compute the associated axis aligned bounding box for a child shape.

ComputeProperties ( ) : void

Compute the mass properties of this shape using its dimensions and density. The inertia tensor is computed about the local origin, not the centroid.

RayCast ( RayCastOutput &output, RayCastInput &input, Transform &transform, int childIndex ) : bool

Cast a ray against a child shape.

TestPoint ( Transform &transform, Vector2 &point ) : bool

Test a point for containment in this shape. This only works for convex shapes.

Приватные методы

Метод Описание
CircleShape ( ) : System

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

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

public CircleShape ( float radius, float density ) : System
radius float
density float
Результат System

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

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

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

Given a transform, compute the associated axis aligned bounding box for a child shape.
public ComputeAABB ( AABB &aabb, Transform &transform, int childIndex ) : void
aabb AABB The aabb results.
transform Transform The world transform of the shape.
childIndex int The child shape index.
Результат void

ComputeProperties() публичный закрытый Метод

Compute the mass properties of this shape using its dimensions and density. The inertia tensor is computed about the local origin, not the centroid.
public final ComputeProperties ( ) : void
Результат void

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

Cast a ray against a child shape.
public RayCast ( RayCastOutput &output, RayCastInput &input, Transform &transform, int childIndex ) : bool
output RayCastOutput The ray-cast results.
input RayCastInput The ray-cast input parameters.
transform Transform The transform to be applied to the shape.
childIndex int The child shape index.
Результат bool

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

Test a point for containment in this shape. This only works for convex shapes.
public TestPoint ( Transform &transform, Vector2 &point ) : bool
transform Transform The shape world transform.
point Vector2 a point in world coordinates.
Результат bool

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

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

public Vector2 Position
Результат Vector2