Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting a triangle based collision shape to go around a mesh #7359

Closed
bkeys opened this issue Dec 23, 2016 · 2 comments
Closed

Getting a triangle based collision shape to go around a mesh #7359

bkeys opened this issue Dec 23, 2016 · 2 comments
Labels

Comments

@bkeys
Copy link
Contributor

bkeys commented Dec 23, 2016

Operating system or device - Godot version:
Fedora 25 using Godot 2.1.1

Issue description (what happened, and what was expected):
I am trying to get some triangle based collision shapes to go around my mesh, and I cannot seem to find a documented way to do this or fabricate it myself. Is this a current or planned feature in Godot? Triangle based collision shapes should be a must for the vast majority of 3D games.

Steps to reproduce:
Should be simple as adding

Rigid Body

Collision Shape
MeshInstance

Link to minimal example project (optional but very welcome):
https://notabug.org/bkeys/Godot_Test

@Nutriz
Copy link
Contributor

Nutriz commented Dec 23, 2016

Hi,

I think that's what you're looking for, this button is a little bit lost :

image

How to use :

  • Select a MeshInstance
  • Mesh > Create trimesh static body

note: the trimesh CollisionShape dont appear in the editor (maybe it's a bug for now), but you can see it when you run the game with the Visible collision shapes debug option :
image

@bkeys
Copy link
Contributor Author

bkeys commented Dec 24, 2016

Alright thank you, this solved the problem I was trying to solve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants