article thumbnail

Adapt Mesh size when used for Mesh collider

Cocos

I can’t adjust or scale the mesh collider once I’ve set the reference. rybones: ion? Any idea on how I can match th Same problem and waiting for Cocos Team to have a guide (or fix) Thumbs up!

Mesh 52
article thumbnail

Get node's 3d-mesh size?

Cocos

For others to get node’s mesh size function getNodeMeshSize(node) { const halfExtents = node.getComponent(MeshRenderer).model.modelBounds.halfExtents; Thanks so much! That’s the code I need! model.modelBounds.halfExtents; return halfExtents.clone().multiplyScalar(2); multiplyScalar(2); }

Mesh 40
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Adapt Mesh size when used for Mesh collider

Cocos

I can’t adjust or scale the mesh collider once I’ve set the reference. Any idea on how I can match the mesh collider with the size of the model mesh? Hey guys, Any idea on how I can fix this situation?

Mesh 52
article thumbnail

Mesh Baking Your Assets (With Ian Deane)

The GameDev Guru

Today, I had the pleasure to interview Ian Deane, the developer behind Mesh Baker. This famous Unity asset lets you drastically reduce your draw calls so your game runs at substantially higher frame-rate. Let's see what he has to say.

Mesh 100
article thumbnail

Get node's 3d-mesh size?

Cocos

and I wonder how can I get the node’s mesh’s size? Hi all I’m using Creator 3.8.2 I’ve tried “node.meshRender._boundingBox” _boundingBox” but it seemed deprecated Thanks so much!

Mesh 40
article thumbnail

How to color triangels in custom Mesh?

Cocos

I created custom mesh let mesh = cc.utils.createMesh({ positions : positions, indices : indices, doubleSided : true }); and i would like a make color of every triangle with different color as on picture below How could I achieve it ? right now Mesh uses color from Material and mesh filled with one color.

Mesh 40
article thumbnail

Simplify Your Life With Unity Mesh Simplifier

The GameDev Guru

Lose those extra vertices you don't need from your meshes and make the life of your GPU a bit easier.

Mesh 100