unreal.PhysicsHandleComponent¶
- class unreal.PhysicsHandleComponent(outer=None, name='None')¶
Bases:
unreal.ActorComponentUtility object for moving physics objects around.
C++ Source:
Module: Engine
File: PhysicsHandleComponent.h
Editor Properties: (see get_editor_property/set_editor_property)
angular_damping(float): [Read-Write] Angular Damping: Angular damping of the handle springangular_stiffness(float): [Read-Write] Angular Stiffness: Angular stiffness of the handle springasset_user_data(Array(AssetUserData)): [Read-Write] Asset User Data: Array of user data stored with the componentauto_activate(bool): [Read-Write] Auto Activate: Whether the component is activated at creation or must be explicitly activated.can_ever_affect_navigation(bool): [Read-Write] Can Ever Affect Navigation: Whether this component can potentially influence navigationcomponent_tags(Array(Name)): [Read-Write] Component Tags: Array of tags that can be used for grouping and categorizing. Can also be accessed from scripting.editable_when_inherited(bool): [Read-Write] Editable when Inherited: True if this component can be modified when it was inherited from a parent actor classinterpolate_target(bool): [Read-Write] Interpolate Targetinterpolation_speed(float): [Read-Write] Interpolation Speed: How quickly we interpolate the physics target transformis_editor_only(bool): [Read-Write] Is Editor Only: If true, the component will be excluded from non-editor buildslinear_damping(float): [Read-Write] Linear Damping: Linear damping of the handle spring.linear_stiffness(float): [Read-Write] Linear Stiffness: Linear stiffness of the handle springon_component_activated(ActorComponentActivatedSignature): [Read-Write] On Component Activated: Called when the component has been activated, with parameter indicating if it was from a reseton_component_deactivated(ActorComponentDeactivateSignature): [Read-Write] On Component Deactivated: Called when the component has been deactivatedprimary_component_tick(ActorComponentTickFunction): [Read-Write] Primary Component Tick: Main tick function for the Componentreplicates(bool): [Read-Write] Replicates: Is this component currently replicating? Should the network code consider it for replication? Owning Actor must be replicating first!soft_angular_constraint(bool): [Read-Write] Soft Angular Constraintsoft_linear_constraint(bool): [Read-Write] Soft Linear Constraint
- property angular_damping¶
[Read-Only] Angular Damping: Angular damping of the handle spring
- Type
(float)
- property angular_stiffness¶
[Read-Only] Angular Stiffness: Angular stiffness of the handle spring
- Type
(float)
- get_grabbed_component() PrimitiveComponent¶
Returns the currently grabbed component, or null if nothing is grabbed.
- Return type
- get_target_location_and_rotation() -> (target_location=Vector, target_rotation=Rotator)¶
Get the current location and rotation
- Returns
target_location (Vector):
target_rotation (Rotator):
- Return type
tuple
- grab_component(component, bone_name, grab_location, constrain_rotation) None¶
Grab Component deprecated: Please use GrabComponentAtLocation or GrabComponentAtLocationWithRotation
- Parameters
component (PrimitiveComponent) –
bone_name (Name) –
grab_location (Vector) –
constrain_rotation (bool) –
- grab_component_at_location(component, bone_name, grab_location) None¶
Grab the specified component at a given location. Does NOT constraint rotation which means the handle will pivot about GrabLocation.
- Parameters
component (PrimitiveComponent) –
bone_name (Name) –
grab_location (Vector) –
- grab_component_at_location_with_rotation(component, bone_name, location, rotation) None¶
Grab the specified component at a given location and rotation. Constrains rotation.
- Parameters
component (PrimitiveComponent) –
bone_name (Name) –
location (Vector) –
rotation (Rotator) –
- property interpolation_speed¶
[Read-Only] Interpolation Speed: How quickly we interpolate the physics target transform
- Type
(float)
- property linear_damping¶
[Read-Only] Linear Damping: Linear damping of the handle spring.
- Type
(float)
- property linear_stiffness¶
[Read-Only] Linear Stiffness: Linear stiffness of the handle spring
- Type
(float)
- set_angular_damping(new_angular_damping) None¶
Set angular damping
- Parameters
new_angular_damping (float) –
- set_angular_stiffness(new_angular_stiffness) None¶
Set angular stiffness
- Parameters
new_angular_stiffness (float) –
- set_interpolation_speed(new_interpolation_speed) None¶
Set interpolation speed
- Parameters
new_interpolation_speed (float) –
- set_linear_damping(new_linear_damping) None¶
Set linear damping
- Parameters
new_linear_damping (float) –
- set_linear_stiffness(new_linear_stiffness) None¶
Set linear stiffness
- Parameters
new_linear_stiffness (float) –