+1 vote

Greetings All!

I am trying to make a simple physics game. I have a RigidBody that has a MeshInstance attached as a child. The Mesh is a Cube. This is my character.

I have a StaticBody with a MeshInstance attached to it. The Mesh is again a Box. This is my terrain.

My scene looks like this:
https://photos.app.goo.gl/QrCLbwjSGNBw4Jtn9

I have a controller that rotates the terrain (i.e. the RigidBody) using apply_torque. I have an issue that my character overlaps my terrain. See the screenshot below:

https://photos.app.goo.gl/q4a3nFySW6QuYzFm7

Even though I am applying the torque in the _physics_process method I still get overlapping.

What can I do to solve this issue?

I already tried:
* Changing the collision shape of the RigidBody to a Sphere and Cylinder
* Make the collision shapes larger than the objects
* Increased the Physics FPS

Test Project:
https://drive.google.com/open?id=1ZPxfod_GoDmxL2LpWcDv7Y54lpZ7Alp6

in Engine by (63 points)

Please log in or register to answer this question.

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 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 webmaster@godotengine.org with your username.

Categories