C# 클래스 hyades.physics.Body

파일 보기 프로젝트 열기: zfedoran/bubblebound 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
aabb BoundingSquare
base_shape Shape
bitmaskx Bitmask
bitmasky Bitmask
count int
curr_angle float
curr_shape Shape
damping float
force Vector2
is_dirty bool
is_merging bool
is_static bool
omega float
pointmass_list hyades.physics.PointMass[]
position Vector2
prev_angle float
scale Vector2
velocity Vector2

공개 메소드들

메소드 설명
ApplyForce ( Vector2 &point, Vector2 &force ) : void
ApplyInternalForces ( double elapsed ) : void
Body ( Shape shape, float mass ) : System
Contains ( Vector2 &point ) : bool
GetClosestPoint ( Vector2 point, Vector2 &closest, Vector2 &normal, int &pointA, int &pointB, float &edgeD ) : float
GetClosestPointMass ( Vector2 point, float &dist ) : PointMass
GetClosestPointOnEdge ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float
GetClosestPointOnEdgeSquared ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float
ToString ( ) : string
ToStringSimple ( ) : string
Update ( double elapsed ) : void
UpdateBodyPositionVelocityForce ( double elapsed ) : void

비공개 메소드들

메소드 설명
GetBodyPositionVelocityForce ( Vector2 &position, Vector2 &velocity, Vector2 &force ) : void
RotateShape ( double elapsed ) : void
SetBodyPositionVelocityForce ( Vector2 position, Vector2 velocity, Vector2 force ) : void
UpdataAABB ( double elapsed ) : void
UpdatePointMasses ( double elapsed ) : void

메소드 상세

ApplyForce() 공개 메소드

public ApplyForce ( Vector2 &point, Vector2 &force ) : void
point Vector2
force Vector2
리턴 void

ApplyInternalForces() 공개 메소드

public ApplyInternalForces ( double elapsed ) : void
elapsed double
리턴 void

Body() 공개 메소드

public Body ( Shape shape, float mass ) : System
shape Shape
mass float
리턴 System

Contains() 공개 메소드

public Contains ( Vector2 &point ) : bool
point Vector2
리턴 bool

GetClosestPoint() 공개 메소드

public GetClosestPoint ( Vector2 point, Vector2 &closest, Vector2 &normal, int &pointA, int &pointB, float &edgeD ) : float
point Vector2
closest Vector2
normal Vector2
pointA int
pointB int
edgeD float
리턴 float

GetClosestPointMass() 공개 메소드

public GetClosestPointMass ( Vector2 point, float &dist ) : PointMass
point Vector2
dist float
리턴 PointMass

GetClosestPointOnEdge() 공개 메소드

public GetClosestPointOnEdge ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float
point Vector2
edgeNum int
hitPt Vector2
normal Vector2
edgeD float
리턴 float

GetClosestPointOnEdgeSquared() 공개 메소드

public GetClosestPointOnEdgeSquared ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float
point Vector2
edgeNum int
hitPt Vector2
normal Vector2
edgeD float
리턴 float

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ToStringSimple() 공개 메소드

public ToStringSimple ( ) : string
리턴 string

Update() 공개 메소드

public Update ( double elapsed ) : void
elapsed double
리턴 void

UpdateBodyPositionVelocityForce() 공개 메소드

public UpdateBodyPositionVelocityForce ( double elapsed ) : void
elapsed double
리턴 void

프로퍼티 상세

aabb 공개적으로 프로퍼티

public BoundingSquare,hyades.physics aabb
리턴 BoundingSquare

base_shape 공개적으로 프로퍼티

public Shape,hyades.physics base_shape
리턴 Shape

bitmaskx 공개적으로 프로퍼티

public Bitmask,hyades.physics bitmaskx
리턴 Bitmask

bitmasky 공개적으로 프로퍼티

public Bitmask,hyades.physics bitmasky
리턴 Bitmask

count 공개적으로 프로퍼티

public int count
리턴 int

curr_angle 공개적으로 프로퍼티

public float curr_angle
리턴 float

curr_shape 공개적으로 프로퍼티

public Shape,hyades.physics curr_shape
리턴 Shape

damping 공개적으로 프로퍼티

public float damping
리턴 float

force 공개적으로 프로퍼티

public Vector2 force
리턴 Vector2

is_dirty 공개적으로 프로퍼티

public bool is_dirty
리턴 bool

is_merging 공개적으로 프로퍼티

public bool is_merging
리턴 bool

is_static 공개적으로 프로퍼티

public bool is_static
리턴 bool

omega 공개적으로 프로퍼티

public float omega
리턴 float

pointmass_list 공개적으로 프로퍼티

public PointMass[],hyades.physics pointmass_list
리턴 hyades.physics.PointMass[]

position 공개적으로 프로퍼티

public Vector2 position
리턴 Vector2

prev_angle 공개적으로 프로퍼티

public float prev_angle
리턴 float

scale 공개적으로 프로퍼티

public Vector2 scale
리턴 Vector2

velocity 공개적으로 프로퍼티

public Vector2 velocity
리턴 Vector2