little things post jam

This commit is contained in:
Crizomb 2025-09-13 02:40:31 +02:00
parent a185751e5a
commit 295245fe4d
5 changed files with 28 additions and 5 deletions

View file

@ -37,7 +37,6 @@ var air_time := 0.0
func custom_gravity() -> Vector3:
var closest_offset = road_path.curve.get_closest_offset(road_path.to_local(position))
var closest_transform = road_path.curve.sample_baked_with_rotation(closest_offset, true, true)
var closest_point = road_path.to_global(closest_transform.origin)
return -closest_transform.basis.y