Makes a rope swing automatically. Intended for ropes with 1 section and a fixed grab position for games that want ropes like 'Pitfall'. Note the ridigbody will be made kinematic and no other physics will affect it.
More...
Makes a rope swing automatically. Intended for ropes with 1 section and a fixed grab position for games that want ropes like 'Pitfall'. Note the ridigbody will be made kinematic and no other physics will affect it.
◆ Init()
virtual void PlatformerPro.RopeMotor.Init |
( |
| ) |
|
|
protectedvirtual |
◆ UpdateAngle()
virtual void PlatformerPro.RopeMotor.UpdateAngle |
( |
| ) |
|
|
protectedvirtual |
◆ max
float PlatformerPro.RopeMotor.max |
|
protected |
◆ min
float PlatformerPro.RopeMotor.min |
|
protected |
◆ myRigidbody
Rigidbody2D PlatformerPro.RopeMotor.myRigidbody |
|
protected |
◆ slowDownModifier
float PlatformerPro.RopeMotor.slowDownModifier |
If true we move at a constant speed, false we slow down at the apex.
◆ speed
float PlatformerPro.RopeMotor.speed = 33.0f |
Rotation speed in degrees per second.
The documentation for this class was generated from the following file:
- D:/Projects/platformer-pro-2019.3/Assets/PlatformerPro/Scripts/Movement/Climbing/RopeMotor.cs