GltfAmmoBodies Op

GltfAmmoBodies

Create physics bodies from a GLTF File


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.


Full Name
  • Ops.Extension.AmmoPhysics.GltfAmmoBodies
Visibility
  •  Extension Op - Visible to all users
License
  • MIT
AuthorgithubMaintained by Team


INPUT PORTS


Exec (Trigger)
Shape index (Number:integer )
Filter Meshes (String)

phrase to find your physics objects in a GLTF scene

Mass kg (Number)

mass of your physics objects

Active (Number:boolean )

OUTPUT PORTS


Meshes (Number)

Patches using GltfAmmoBodies

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2022-03-30 13:48
Ops.User.pandur.GltfAmmoBodies renamed to Ops.Dev.GltfAmmoBodiesuser avatarpandur - 2022-03-30 14:30
Ops.Dev.GltfAmmoBodies renamed to Ops.Physics.Ammo.GltfAmmoBodiesuser avatarpandur - 2022-05-09 11:52
renameOps.Physics.Ammo.GltfAmmoBodies renamed to Ops.Extension.AmmoPhysics.GltfAmmoBodiesuser avatarpandur - 2023-09-14 09:39