Property | Type | Description | |
---|---|---|---|
buoyancy | |||
buoyancySurfaceFactor | float | ||
surfaceOffset | float | ||
viscosity | float |
Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
OnDrawGizmos ( ) : void |
public DistanceToSurface ( Character character, float offset ) : float | ||
character | Character | |
offset | float | |
return | float |
public IsBelowSurface ( Character character, float offset ) : bool | ||
character | Character | |
offset | float | |
return | bool |
public IsSubmerged ( Character character ) : bool | ||
character | Character | |
return | bool |
public OnTriggerEnter2D ( |
||
o | ||
return | void |
public OnTriggerExit2D ( |
||
o | ||
return | void |