#[SOLVED] Godot 4.3 movement

1 messages · Page 1 of 1 (latest)

rapid bough
#

I'm trying out 3d for a change, and was busy making a first person character. I give him the default movement script and he just zooms out into space.

#

I don't know what's causing it to go flying, unfortunately.

#

Here's the entire script if it was too fast in the video

junior narwhal
#

First, I dunno why you have a static body as the child of the mesh instance…?

#

You should have Player as parent with two childs being mesh and collision shape and another child of player thats a spatial3d as head (or neck) and a child of that which is the camera

#

Now, at the top of the script your speed is set to 50 so maybe that causes the flying

#

Are you pressing any buttons or does the player just automatically yeet itself into the void?

rapid bough
#

no buttons pressed, and 50 doesn't change the speed, he just goes anyway. but let's try the changes you mentioned. (I was following a tutorial)

junior narwhal
#

If im home i can maybe send you a basic character controller

#

im just struggling with crouching atm

rapid bough
#

Deleted the static body.

junior narwhal
#

:D

#

I guess static bodies don’t like being moved

rapid bough
#

Seems like it

#

[SOLVED] Godot 4.3 movement

light agate
#

static bodies dont like to be moved they should be used for stationary objects