unreal.GeometryScriptSimpleCollision
¶
- class unreal.GeometryScriptSimpleCollision¶
Bases:
StructBase
Holds simple shapes that can be used for collision
C++ Source:
Plugin: GeometryScripting
Module: GeometryScriptingCore
File: GeometryScriptTypes.h
- approximate_convex_hulls_with_simpler_collision_shapes(approximate_options, debug=None) bool ¶
Attempt to approximate any convex hulls in the given simple collision representation. Updates the passed-in Simple Collision. Convex hulls that aren’t well approximated (to tolerances set in ApproximateOptions) will remain as convex hulls.
- Parameters:
approximate_options (GeometryScriptConvexHullApproximationOptions) –
debug (GeometryScriptDebug) –
- Returns:
has_approximated (bool): Indicates whether any convex hulls were replaced with simpler approximations
- Return type:
- combine_simple_collision(append_collision, debug=None) None ¶
Add simple collision shapes from AppendCollision to CollisionToUpdate
- Parameters:
append_collision (GeometryScriptSimpleCollision) –
debug (GeometryScriptDebug) –
- get_simple_collision_shape_count() int32 ¶
Count of number of simple collision shapes
- Return type:
int32
- simplify_convex_hulls(simplify_options, debug=None) bool ¶
Simplify any convex hulls in the given simple collision representation. Updates the passed-in Simple Collision.
- Parameters:
simplify_options (GeometryScriptConvexHullSimplificationOptions) –
debug (GeometryScriptDebug) –
- Returns:
has_simplified (bool): Indicates whether any convex hulls were modified
- Return type: