【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, duration hours minute second in high quality that is uploaded to the channel 小胡xiaohu 26 October 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 271 times and liked it 6 visitors.