Свойство | Type | Description | |
---|---|---|---|
buoyancy | |||
buoyancySurfaceFactor | float | ||
surfaceOffset | float | ||
viscosity | float |
Méthode | 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
|
Méthode | Description | |
---|---|---|
OnDrawGizmos ( ) : void |
public DistanceToSurface ( Character character, float offset ) : float | ||
character | Character | |
offset | float | |
Résultat | float |
public IsBelowSurface ( Character character, float offset ) : bool | ||
character | Character | |
offset | float | |
Résultat | bool |
public IsSubmerged ( Character character ) : bool | ||
character | Character | |
Résultat | bool |
public OnTriggerEnter2D ( |
||
o | ||
Résultat | void |
public OnTriggerExit2D ( |
||
o | ||
Résultat | void |