Feat:Adds Line Lock Module#317
Conversation
beanbag44
left a comment
There was a problem hiding this comment.
The movement based snapping probably doesnt need to be used here. If the direction is defined by the starting rotation and snapping, then that can be used to angle everything. The only reason its done using movement in obstacle passing efly's is because the user might not be using a rotation lock. Its not needed here as the module is rotation locking
| description = "Locks the player's yaw to a line and steers toward a point ahead on the line", | ||
| tag = ModuleTag.Companion.PLAYER, | ||
| ) { | ||
| private const val YAW_SNAP_INCREMENT = 45.0 // snap the axis to the nearest 45° heading |
There was a problem hiding this comment.
i think it'd be nice to have some of these as settings. For example, bounce efly has the step as a setting so you can ensure that no matter what angle the highway is built at, it will always be configurable to snap in the right direction
There was a problem hiding this comment.
Which ones? I left a lot of these out to keep the interface simple so there's a shallow learning curve for using it.
What do you mean by movement based snapping? |
The direction calculation based on line origin and current player position |
Still not sure I follow. What function/line number are you talking about? |
Reading it again i was mistaken, my bad |
|
noticed there was a reference to ConfigEditor.hideAllExcept though. Best to directly import hideAllExcept and remove the ConfigEditor. prefix |
Description
An alternative to rotation lock. Instead of locking your rotation to a certain angle, it locks it towards a line. That way when you bump pigmen on the highway, you realign to the middle instead of getting pushed off to the side.
This comment explains the functionality pretty clearly