0 votes

I'm trying to implement oil barrels in my 3D game using Godot 2.1.3. I want to make them movable by player, so, I think, they must be rigid bodies. But to my surprise there is no cylinder CollisionShape in Godot.

So I tried to use ConcavePolygonShape that was generated by scene import. Collisions worked fine when it was StaticBody, but when my barrel became RigidBody, it began to pass through walls and other level meshes. Does Godot ignore trimesh-trimesh collisions or I am doing something wrong?

Is there a workaround that solves my problem?

in Engine by (32 points)

1 Answer

+1 vote
Best answer

For me it seems that a convex collision shape worked, but the tri-mesh didn't.

If you want to generate collision shapes quickly in Godot, and you have a mesh already (I'm assume you have a cylinder mesh in your project). While your are in the Spatial view, there is a Mesh tool button. In it reveals the options to Create Convex Collision Sibling

Using the second set, and convex sibling, I can get a colliding cylinder shape rolling down a plane.

by (5,206 points)
selected by

It works, thank you!

No problem ^_^

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.