make sine consider default position instead of current
This commit is contained in:
parent
73ebbfa49d
commit
17d2ea9f1d
@ -290,8 +290,8 @@ func _animate_position() -> Vector3:
|
|||||||
sin(
|
sin(
|
||||||
(
|
(
|
||||||
keyboard.anim_time
|
keyboard.anim_time
|
||||||
+ (position.x / keyboard.key_size) * _idle_frequency.x
|
+ (_default_position.x / keyboard.key_size) * _idle_frequency.x
|
||||||
+ (position.z / keyboard.key_size) * _idle_frequency.y
|
+ (_default_position.z / keyboard.key_size) * _idle_frequency.y
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
* _idle_amplitude
|
* _idle_amplitude
|
||||||
|
|||||||
@ -19,11 +19,11 @@ var layouts: Dictionary[String, AbstractLayout] = {
|
|||||||
LayoutJIS.name_static(): LayoutJIS.new(),
|
LayoutJIS.name_static(): LayoutJIS.new(),
|
||||||
# LayoutJD40.name_static(): LayoutJD40.new(),
|
# LayoutJD40.name_static(): LayoutJD40.new(),
|
||||||
# LayoutPlanck.name_static(): LayoutPlanck.new(),
|
# LayoutPlanck.name_static(): LayoutPlanck.new(),
|
||||||
# "ansi-104.json": LayoutKLE.new("res://scripts/layouts/kle/ansi-104.json"),
|
"ansi-104.json": LayoutKLE.new("res://scripts/layouts/kle/ansi-104.json"),
|
||||||
# "ansi-104-big-enter.json":
|
"ansi-104-big-enter.json":
|
||||||
# LayoutKLE.new("res://scripts/layouts/kle/ansi-104-big-enter.json"),
|
LayoutKLE.new("res://scripts/layouts/kle/ansi-104-big-enter.json"),
|
||||||
# "iso-105.json": LayoutKLE.new("res://scripts/layouts/kle/iso-105.json"),
|
"iso-105.json": LayoutKLE.new("res://scripts/layouts/kle/iso-105.json"),
|
||||||
# "keycool-84.json": LayoutKLE.new("res://scripts/layouts/kle/keycool-84.json"),
|
"keycool-84.json": LayoutKLE.new("res://scripts/layouts/kle/keycool-84.json"),
|
||||||
# LayoutTest.name_static(): LayoutTest.new(),
|
# LayoutTest.name_static(): LayoutTest.new(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user