unreal.GeometryScriptConvexHullApproximationOptions

class unreal.GeometryScriptConvexHullApproximationOptions(fit_spheres: bool = False, fit_boxes: bool = False, distance_threshold: float = 0.0, volume_diff_threshold_fraction: float = 0.0)

Bases: StructBase

Geometry Script Convex Hull Approximation Options

C++ Source:

  • Plugin: GeometryScripting

  • Module: GeometryScriptingCore

  • File: CollisionFunctions.h

Editor Properties: (see get_editor_property/set_editor_property)

  • distance_threshold (float): [Read-Write] Approximating shape should be at least this close to the original shape

  • fit_boxes (bool): [Read-Write] Whether to attempt to replace convex hulls with boxes

  • fit_spheres (bool): [Read-Write] Whether to attempt to replace convex hulls with spheres

  • volume_diff_threshold_fraction (float): [Read-Write] Acceptable difference between approximating shape volume and convex hull volume, as a fraction of convex hull volume

property distance_threshold: float

[Read-Write] Approximating shape should be at least this close to the original shape

Type:

(float)

property fit_boxes: bool

[Read-Write] Whether to attempt to replace convex hulls with boxes

Type:

(bool)

property fit_spheres: bool

[Read-Write] Whether to attempt to replace convex hulls with spheres

Type:

(bool)

property volume_diff_threshold_fraction: float

[Read-Write] Acceptable difference between approximating shape volume and convex hull volume, as a fraction of convex hull volume

Type:

(float)