프로퍼티 | 타입 | 설명 | |
---|---|---|---|
buoyancy | |||
buoyancySurfaceFactor | float | ||
surfaceOffset | float | ||
viscosity | float |
메소드 | 설명 | |
---|---|---|
DistanceToSurface ( Character character, float offset ) : float |
Get the distance between liquid surface and character(feet) + offset
|
|
GetTop ( ) : |
Get real-world-coordinates water top
|
|
IsBelowSurface ( Character character, float offset ) : bool |
Return if given character(feet) + offset is below liquid surface
|
|
IsSubmerged ( Character character ) : bool |
Return if given character is complety submerged
|
|
OnTriggerEnter2D ( |
if a Hitbox(EnterAreas) enter -> enterArea
|
|
OnTriggerExit2D ( |
if a Hitbox(EnterAreas) enter -> exitArea
|
|
Start ( ) : void |
Get BoxCollider2D
|
메소드 | 설명 | |
---|---|---|
OnDrawGizmos ( ) : void |
public DistanceToSurface ( Character character, float offset ) : float | ||
character | Character | |
offset | float | |
리턴 | float |
public IsBelowSurface ( Character character, float offset ) : bool | ||
character | Character | |
offset | float | |
리턴 | bool |
public OnTriggerEnter2D ( |
||
o | ||
리턴 | void |
public OnTriggerExit2D ( |
||
o | ||
리턴 | void |