beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

GltfAmmoBodies Op

Ops.Physics.Ammo.GltfAmmoBodies


GltfAmmoBodies
Namespace: Ops.Physics.Ammo

Op author: pandur

Create physics bodies from a GLTF File


summary (oneliner)

When working with a GLTF scene with lots of geometry objects you can use this operator to filter your entire GLTF scene for object names and create a collision mesh.

For example if you created a model of a house, and then create a simplified set of objects representing the collision meshes for the walls and floors - name the simple collision meshes with a prefix like "Collision_" and then use this operator and put in the word "Collision" in the Filter Meshes paramter and just like that all of your many collision meshes will be considered as physics objects inside your cables project.

###Problems with rotations, wrong collision meshes?

Here is a tip about preparing GLTF scene geometry:
When using Blender or another software to prepare your GLTF scene for your cables physics simulations it is required you apply all of your transforms, scaling and rotations on your objects.

In Blender, you can simply select all objects with CTRL-A and click Apply All Transforms in the top menu.



doc

issues

example patch id

youtube id

caniuse query

collections

related ops

Inputs

Exec (Trigger)

Filter Meshes (String)

phrase to find your physics objects in a GLTF scene


Mass kg (Number)

mass of your physics objects


Size Multiply (Number)

Outputs

Meshes (Number)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

Ammo Raycast

Open Example In Editor


Patches using GltfAmmoBodies

Changelog


created op
2022-03-30 - pandur

Ops.User.pandur.GltfAmmoBodies renamed to Ops.Dev.GltfAmmoBodies
2022-03-30 - pandur

Ops.Dev.GltfAmmoBodies renamed to Ops.Physics.Ammo.GltfAmmoBodies
2022-05-09 - pandur