Skip to content

SteamAudioGeometry

stechyo edited this page Apr 1, 2024 · 4 revisions

This node will attempt to get a mesh from its parent at _ready() and add it to the internal SteamAudio scene. Adding a node after the game has started probably works, but it is not supported. If you want to move this node's transform at runtime, use recalculate() or consider (if you want more detailed simulation and don't mind worse performance) SteamAudioDynamicGeometry.

Properties:

  • material (SteamAudioMaterial) - the geometry's material.
  • is_disabled (bool) - whether the geometry is disabled.
  • recalculate - changes the internal SteamAudio scene to reflect any changes in transform that you may have made to the object. If you plan on calling this every frame to account for an object's motion, it's probably better to use SteamAudioDynamicGeometry.

This node can extract meshes from the following nodes:

  • MeshInstance3D
  • CollisionShape3D if its shape is one of:
    • BoxShape3D
    • CylinderShape3D
    • CapsuleShape3D
    • SphereShape3D
    • ConcavePolygonShape3D
Clone this wiki locally