Godot 3D tutorial: Create a moving platform + Download

preview_player
Показать описание
SImply how to create a 3D moving platform,

Create a body, usaly a kinematicbody (works best) + collision, mesh, anim-player.

and add transforms keys. to the anim track.

to get the player move with the platform, just add get_floor_velocity in the move_and_slide as in 1:48

There are a lot of issues around this, so I decided to find out how it works :).
Рекомендации по теме
Комментарии
Автор

Godot always surprises me I didnt know get_floor_velocity existed, and ive been using in for about 2-3 years before fully switching

Chevifier
Автор

Quick tip I struggle with jitterness for a while: You need to have a constant downward force applied on the y velocity something tiny like 0.1 this prevents the Kinematic body from returning false when is_on_floor is called. get_floor_velocity doesn't work or skips a frame each time(hence the jitters)

Chevifier
Автор

The animation doesn't play in game

galemannenman
Автор

I've seen so many workarounds while googling, and then I press this random video and see the get_floor_velocity() exist, why does no one talk about that lol

thanks

fabianvelander