C# 클래스 LostPolygon.DynamicWaterSystem.FluidVolume

상속: UnityEngine.MonoBehaviour, IDynamicWaterFluidVolume
파일 보기 프로젝트 열기: cortexarts/Feiko-Unity-OLD

보호된 프로퍼티들

프로퍼티 타입 설명
_collider UnityEngine.BoxCollider
_transform UnityEngine.Transform

공개 메소드들

메소드 설명
CreateSplash ( Vector3 center, float radius, float force ) : void

Creates a circular drop splash on the fluid surface (if available).

GetWaterLevel ( Vector3 position ) : float

Returns water level at the given position in world space.

GetWaterLevel ( float x, float z ) : float

Returns water level at the given position in simulation grid space.

GetWaterLevel ( float x, float y, float z ) : float

Returns water level at the given position in world space.

보호된 메소드들

메소드 설명
CreateCollider ( ) : void

Creates the Collider and updates its bounds.

Initialize ( ) : void

Initializes the Collider and updates its bounds.

PropertyChanged ( ) : void
UpdateCollider ( ) : void

Updates the collider bounds according to the Size and Depth.

비공개 메소드들

메소드 설명
OnDrawGizmos ( ) : void
Start ( ) : void

메소드 상세

CreateCollider() 보호된 메소드

Creates the Collider and updates its bounds.
protected CreateCollider ( ) : void
리턴 void

CreateSplash() 공개 메소드

Creates a circular drop splash on the fluid surface (if available).
public CreateSplash ( Vector3 center, float radius, float force ) : void
center UnityEngine.Vector3 /// The center of the splash in local space. ///
radius float /// The radius of the splash. ///
force float /// The amount of force applied to create the splash. ///
리턴 void

GetWaterLevel() 공개 메소드

Returns water level at the given position in world space.
public GetWaterLevel ( Vector3 position ) : float
position UnityEngine.Vector3 /// The position at which to query the water level. ///
리턴 float

GetWaterLevel() 공개 메소드

Returns water level at the given position in simulation grid space.
public GetWaterLevel ( float x, float z ) : float
x float /// The x coordinate. ///
z float /// The z coordinate. ///
리턴 float

GetWaterLevel() 공개 메소드

Returns water level at the given position in world space.
public GetWaterLevel ( float x, float y, float z ) : float
x float /// The x coordinate. ///
y float /// The y coordinate. ///
z float /// The z coordinate. ///
리턴 float

Initialize() 보호된 메소드

Initializes the Collider and updates its bounds.
protected Initialize ( ) : void
리턴 void

PropertyChanged() 보호된 메소드

protected PropertyChanged ( ) : void
리턴 void

UpdateCollider() 보호된 메소드

Updates the collider bounds according to the Size and Depth.
protected UpdateCollider ( ) : void
리턴 void

프로퍼티 상세

_collider 보호되어 있는 프로퍼티

protected BoxCollider,UnityEngine _collider
리턴 UnityEngine.BoxCollider

_transform 보호되어 있는 프로퍼티

protected Transform,UnityEngine _transform
리턴 UnityEngine.Transform