0 votes

so my problem is that i need my player character to be able to stand on a block, which i have as a rigidbody cube. so far im able to push it around, and ive made a raycast so that i can jump while standing on it, but whenever i try to stand on it the cube is pushed out of the way and i go to the floor

my character controller only references isonfloor() in the jumping function, so i think that this is an issue with the types of node i used, or something with them

can anyone reccomend:
a way to maybe a kinematicbody detect a rigidbody as the floor,
some setting or script i can apply to the rigidbody,
another type of node to use for the block,
a way to make the block effect the players movement,
or something else that i havent thought of

thank you

Godot version 3.4.4.stable
in Engine by (26 points)

1 Answer

+2 votes
Best answer

Are you using move_and_slide? If so, try setting the last parameter infinite_inertia to false.

by (1,246 points)
selected by

thank you so much friend now all my game mechanics are in order!!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.