unreal.PlanarConstraintUtils¶
- class unreal.PlanarConstraintUtils(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibraryPlanarConstraintUtils: a collection of stateless static BP-accessible functions for working with planar constraints
C++ Source:
Plugin: Mover
Module: Mover
File: ConstrainedMoveUtils.h
- classmethod constrain_direction_to_plane(constraint, direction, maintain_magnitude=False) Vector¶
Constrains a direction to be on the plane, if enabled
- Parameters:
constraint (PlanarConstraint)
direction (Vector)
maintain_magnitude (bool)
- Return type:
- classmethod constrain_location_to_plane(constraint, location) Vector¶
Constrains a location to be on the plane, if enabled
- Parameters:
constraint (PlanarConstraint)
location (Vector)
- Return type:
- classmethod constrain_normal_to_plane(constraint, normal) Vector¶
Constrains a normal to be on the plane, if enabled. Result will be re-normalized.
- Parameters:
constraint (PlanarConstraint)
normal (Vector)
- Return type:
- classmethod set_planar_constraint_enabled(constraint, enabled) PlanarConstraint¶
Sets whether or not the constraint is enabled
- Parameters:
constraint (PlanarConstraint)
enabled (bool)
- Returns:
constraint (PlanarConstraint):
- Return type:
- classmethod set_planar_constraint_normal(constraint, plane_normal) PlanarConstraint¶
Sets the normal of the plane that constrains movement, enforced if the plane constraint is enabled.
- Parameters:
constraint (PlanarConstraint)
plane_normal (Vector) – The normal of the plane. If non-zero in length, it will be normalized.
- Returns:
constraint (PlanarConstraint):
- Return type:
- classmethod set_plane_constraint_origin(constraint, plane_origin) PlanarConstraint¶
Sets the origin of the plane that constrains movement, enforced if the plane constraint is enabled.
- Parameters:
constraint (PlanarConstraint)
plane_origin (Vector)
- Returns:
constraint (PlanarConstraint):
- Return type: