unreal.GeometryScriptConvexHullApproximationOptions¶
- class unreal.GeometryScriptConvexHullApproximationOptions(fit_spheres: bool = False, fit_boxes: bool = False, fit_capsules: bool = False, distance_threshold: float = 0.0, volume_diff_threshold_fraction: float = 0.0)¶
Bases:
StructBaseGeometry 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 shapefit_boxes(bool): [Read-Write] Whether to attempt to replace convex hulls with boxesfit_capsules(bool): [Read-Write] Whether to attempt to replace convex hulls with capsulesfit_spheres(bool): [Read-Write] Whether to attempt to replace convex hulls with spheresvolume_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_capsules: bool¶
[Read-Write] Whether to attempt to replace convex hulls with capsules
- Type:
(bool)