#Collision help

15 messages · Page 1 of 1 (latest)

lyric minnow
#

guys, I don’t understand how to make a collision in the game, my player just passes through objects, hepl pls

gritty radish
# lyric minnow guys, I don’t understand how to make a collision in the game, my player just pas...

Well, you neeed 4 things. your player (should be a rigid body or character body, a ridgid body will handle collisions automatically with gravity while a character body you need to manually code gravity and collisions with move_and_slide()), a collision shape that is a child of your player, a floor or something to collide with (ridgid body for objects that move, static bodies for immovable objects) and then another collision shape as a child of your floor body

#

I'd look at some beginner tutorials on youtube

lyric minnow
#

can you show in discord

#

pls

#

i'm so stupid

#

and my english so bad

lyric minnow
#

and read docs

#

zero impact

gritty radish
#

Their should be some tutorials in other languages as well

lyric minnow
#

(

gritty radish
#

You can download an example project from here: https://www.youtube.com/watch?v=A3HLeyaBCq4

In this video we create a first person character controller for Godot 4 from scratch. We also add a range of game feel features including headbob, sprinting, fov change, and inertia. This controller can be used for a variety of Godot 3D first person games, including FPS, horror, survival, RPG, etc. All of this code works with Godot 4.1.

Suppor...

▶ Play video
#

look at how it works