C# 클래스 FarseerPhysics.Common.PhysicsLogic.SimpleExplosion

Creates a simple explosion that ignores other bodies hiding behind static bodies.
상속: PhysicsLogic
파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
power float

공개 메소드들

메소드 설명
SimpleExplosion ( World world ) : System
activate ( Vector2 pos, float radius, float force, float maxForce = float.MaxValue ) : Vector2>.Dictionary

Activate the explosion at the specified position.

비공개 메소드들

메소드 설명
GetPercent ( float distance, float radius ) : float
applyImpulse ( Vector2 pos, float radius, float force, float maxForce, HashSet overlappingBodies ) : Vector2>.Dictionary

메소드 상세

SimpleExplosion() 공개 메소드

public SimpleExplosion ( World world ) : System
world FarseerPhysics.Dynamics.World
리턴 System

activate() 공개 메소드

Activate the explosion at the specified position.
public activate ( Vector2 pos, float radius, float force, float maxForce = float.MaxValue ) : Vector2>.Dictionary
pos Vector2 The position (center) of the explosion.
radius float The radius of the explosion.
force float The force applied
maxForce float A maximum amount of force. When force gets over this value, it will be equal to maxForce
리턴 Vector2>.Dictionary

프로퍼티 상세

power 공개적으로 프로퍼티

This is the power used in the power function. A value of 1 means the force applied to bodies in the explosion is linear. A value of 2 means it is exponential.
public float power
리턴 float