Skip to content

Feat:Adds Line Lock Module#317

Open
PoTheMagicDragon wants to merge 1 commit into
lambda-client:1.21.11from
PoTheMagicDragon:line-lock
Open

Feat:Adds Line Lock Module#317
PoTheMagicDragon wants to merge 1 commit into
lambda-client:1.21.11from
PoTheMagicDragon:line-lock

Conversation

@PoTheMagicDragon

@PoTheMagicDragon PoTheMagicDragon commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

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

		//  When enabled we lock onto a straight "rail" and steer the camera down it:
		//
		//        lineOrigin ●─────────●──────────►  lineDirection (the way the rail points)
		//                            ╱ closestPoint (rail spot nearest you)
		//                    you ●──╯                → we aim a bit further down the rail
		//                                              (lookaheadPoint) so you curve back on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant