Skip to content

Commit

Permalink
Another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-semyonov committed Sep 26, 2024
1 parent 042b4bf commit ef51f44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Generator/Generator/BuiltinGen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -886,16 +886,16 @@ private let customBuiltinMethodImplementations: [MethodSignature: String] = [

"Vector3.length": """
// https://github.com/godotengine/godot/blob/f7c567e2f56d6e63f4749387a67e5ea4903c4696/core/math/vector3.h#L476-L481
return sqrt(x * x + y * y + z * z)
return Double(sqrt(x * x + y * y + z * z))
""",

"Vector3.length_squared": """
// https://github.com/godotengine/godot/blob/f7c567e2f56d6e63f4749387a67e5ea4903c4696/core/math/vector3.h#L484-L489
return x * x + y * y + z * z
return Double(x * x + y * y + z * z)
""",

"Vector3.distance": """
// https://github.com/godotengine/godot/blob/f7c567e2f56d6e63f4749387a67e5ea4903c4696/core/math/vector3.h#L292-L295
return (to - self).length()
return Double((to - self).length())
""",
]

0 comments on commit ef51f44

Please sign in to comment.