Top of a rope.
More...
◆ GetCharacterPositionForPosition() [1/2]
override Vector2 PlatformerPro.RopeAnchor.GetCharacterPositionForPosition |
( |
float |
position | ) |
|
|
virtual |
Gets the position in world space the character should be based on how far up the rope section they are.
- Returns
- The center for position.
- Parameters
-
characterPosition | Characters grab position. |
Reimplemented from PlatformerPro.RopeSection.
◆ GetCharacterPositionForPosition() [2/2]
override Vector2 PlatformerPro.RopeAnchor.GetCharacterPositionForPosition |
( |
float |
position, |
|
|
float |
handOffset |
|
) |
| |
|
virtual |
Gets the position in world space the character should be based on how far up the rope section they are.
- Returns
- The center for position.
- Parameters
-
characterPosition | Characters grab position. |
characterPosition | Offset from characters center and their grab (usually hand) position. |
Reimplemented from PlatformerPro.RopeSection.
◆ GetCharacterRotationForPosition()
override float PlatformerPro.RopeAnchor.GetCharacterRotationForPosition |
( |
float |
position, |
|
|
float |
handOffset |
|
) |
| |
|
virtual |
Gets the rotation (in eueler z degrees) for the given rope position.
- Returns
- The center for position.
- Parameters
-
characterPosition | Characters grab position. |
characterPosition | Offset from characters center and their grab (usually hand) position. |
Reimplemented from PlatformerPro.RopeSection.
◆ GetPositionForCharacterPosition()
override float PlatformerPro.RopeAnchor.GetPositionForCharacterPosition |
( |
Vector2 |
position | ) |
|
|
virtual |
Gets how far up the rope section (0 at bottom, 1 at top) a character is.
- Returns
- The center for position.
- Parameters
-
characterPosition | Characters grab position. |
Reimplemented from PlatformerPro.RopeSection.
◆ Init()
override void PlatformerPro.RopeAnchor.Init |
( |
| ) |
|
|
protectedvirtual |
◆ Length
override float PlatformerPro.RopeAnchor.Length |
|
get |
Get the rope section length.
The length.
The documentation for this class was generated from the following file:
- D:/Projects/platformer-pro-2019.3/Assets/PlatformerPro/Scripts/Movement/Climbing/RopeAnchor.cs