【Godot】教你实现3D第一人称控制

Published: 26 October 2021
on channel: 小胡xiaohu
271
6

【Godot】教你实现3D第一人称控制

replace the script between "dir=Vector3()" and "if Input.is_action_just...":
if is_on_floor():
gravity_vel = -get_floor_normal()
h_drag = normal_drag
jumpStatus = true
else:
gravity_vel += Vector3.DOWN * gravity * delta

if !RayCast.is_colliding():
h_drag = air_drag


Watch video 【Godot】教你实现3D第一人称控制 online without registration, duration hours minute second in high quality. This video was added by user 小胡xiaohu 26 October 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 271 once and liked it 6 people.