C# 클래스 Project290.Physics.Collision.Shapes.CircleShape

상속: Shape
파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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