C# 클래스 FootballSimulation.PointMass

A 2-dimensional point mass approximation.
상속: IPointMass
파일 보기 프로젝트 열기: PurdueSIGAI/Soccer 1 사용 예제들

공개 메소드들

메소드 설명
PointMass ( float mass, float radius, float maxForce, float maxSpeed, Vector2 position, Vector2 velocity ) : System

Initializes a new instance of the PointMass class with the specified initial values for the position and velocity.

ToString ( ) : string

Returns a string representation of the point mass.

비공개 메소드들

메소드 설명
GetFriction ( float frictionCoefficient ) : Vector2
Reset ( Vector2 position ) : void
ResolveCollision ( Vector2 normal ) : void
Simulate ( float time ) : void

메소드 상세

PointMass() 공개 메소드

Initializes a new instance of the PointMass class with the specified initial values for the position and velocity.
public PointMass ( float mass, float radius, float maxForce, float maxSpeed, Vector2 position, Vector2 velocity ) : System
mass float The mass.
radius float The radius used for collision checking.
maxForce float The maximum force.
maxSpeed float The maximum speed.
position Vector2 The position.
velocity Vector2 The velocity.
리턴 System

ToString() 공개 메소드

Returns a string representation of the point mass.
public ToString ( ) : string
리턴 string