C# 클래스 FarseerPhysics.Dynamics.BreakableBody

A type of body that supports multiple fixtures that can break apart.
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
isBroken bool
mainBody Body
parts List
strength float

공개 메소드들

메소드 설명
BreakableBody ( World world, IEnumerable shapes, Vector2 position = newVector2(), float rotation ) : System
BreakableBody ( World world, IEnumerable vertices, float density, Vector2 position = newVector2(), float rotation ) : System
breakBody ( ) : void
decompose ( ) : void
onPostSolve ( Contact contact, ContactVelocityConstraint impulse ) : void
update ( ) : void

메소드 상세

BreakableBody() 공개 메소드

public BreakableBody ( World world, IEnumerable shapes, Vector2 position = newVector2(), float rotation ) : System
world World
shapes IEnumerable
position Vector2
rotation float
리턴 System

BreakableBody() 공개 메소드

public BreakableBody ( World world, IEnumerable vertices, float density, Vector2 position = newVector2(), float rotation ) : System
world World
vertices IEnumerable
density float
position Vector2
rotation float
리턴 System

breakBody() 공개 메소드

public breakBody ( ) : void
리턴 void

decompose() 공개 메소드

public decompose ( ) : void
리턴 void

onPostSolve() 공개 메소드

public onPostSolve ( Contact contact, ContactVelocityConstraint impulse ) : void
contact FarseerPhysics.Dynamics.Contacts.Contact
impulse FarseerPhysics.Dynamics.Contacts.ContactVelocityConstraint
리턴 void

update() 공개 메소드

public update ( ) : void
리턴 void

프로퍼티 상세

isBroken 공개적으로 프로퍼티

public bool isBroken
리턴 bool

mainBody 공개적으로 프로퍼티

public Body,FarseerPhysics.Dynamics mainBody
리턴 Body

parts 공개적으로 프로퍼티

public List parts
리턴 List

strength 공개적으로 프로퍼티

The force needed to break the body apart. Default: 500
public float strength
리턴 float