Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KinematicBody move_lock_y does not do anything #37017

Closed
nathanfranke opened this issue Mar 13, 2020 · 5 comments · Fixed by #38852
Closed

KinematicBody move_lock_y does not do anything #37017

nathanfranke opened this issue Mar 13, 2020 · 5 comments · Fixed by #38852
Assignees
Milestone

Comments

@nathanfranke
Copy link
Contributor

Godot version:
951ecc4

OS/device including version:
Linux Mint 19.3

Issue description:
66f00ab9

func _physics_process(delta):
	move_lock_y = true
	move_and_slide(Vector3.RIGHT)

Steps to reproduce:

Minimal reproduction project:
Test14.zip

@nathanfranke nathanfranke changed the title move_lock_y does not do anything KinematicBody move_lock_y does not do anything Mar 13, 2020
@akien-mga
Copy link
Member

I'm not sure that's a bug, I think move_lock_y only blocks translation on Y, not rotation.
There used to be an angular axis block too, but @reduz removed the property in c7e4527 without clear explanation (by mistake?).

@akien-mga
Copy link
Member

CC @AndreaCatania who originally implemented this in 5dee44b.

@rsubtil
Copy link
Contributor

rsubtil commented Mar 13, 2020

Might be related to #36847

@RichardEllicott
Copy link

RichardEllicott commented May 18, 2020

i also get this issue

so the move lock doesn't work, some of my objects are floating off

it is not the rotation, it is the position, it should lock the y position (same problem with other move locks x and z)

as a workaround specific to my game, so far this seems to work:

if translation.y != 0.0: translation.y = 0.0

@AndreaCatania AndreaCatania self-assigned this May 19, 2020
@AndreaCatania AndreaCatania added this to the 4.0 milestone May 19, 2020
@AndreaCatania
Copy link
Contributor

Fixed with: #38852

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

Successfully merging a pull request may close this issue.

6 participants