unreal.PhysicsObjectBlueprintLibrary

class unreal.PhysicsObjectBlueprintLibrary(outer: Object | None = None, name: Name | str = 'None')

Bases: BlueprintFunctionLibrary

Physics Object Blueprint Library

C++ Source:

  • Module: Engine

  • File: PhysicsObjectBlueprintLibrary.h

classmethod apply_radial_impulse(component, origin, radius, strength, falloff, apply_strain, strain, vel_change=False, min_value=0.000000, max_value=1.000000) None

Apply a physics radial impulse with an optional strain on a specific component Effect is applied within a sphere. When using linear falloff the effect will be minimum at the outer edge of the sphere and maximum at its center

Parameters:
  • component (PrimitiveComponent) – Primitive component to apply the impulse / strain on

  • origin (Vector) – Positition of the origin of the radial effect in world space

  • radius (float) – Radius of the radial effect ( beyond the radius, impulse will not be applied )

  • strength (float) – Strength of the impulse to apply ( Unit : (Kg * m / s) or ( m /s ) if bVelChange is true

  • falloff (RadialImpulseFalloff) – Type of falloff to use ( constant, linear )

  • apply_strain (bool) – Whether or not to apply strain on top of the impulse ( for destructible objects )

  • strain (float) – If bApplyStrain is true, Strain to apply to the physics particles ( for destructible objects )

  • vel_change (bool) – If true, impulse Strength parameter is interpretation as a change of velocity

  • min_value (float) – When using linear falloff, this define the falloff value at the outer edge of the sphere

  • max_value (float) – When using linear falloff, this define the falloff value at the center of the sphere

classmethod extract_closest_physics_object_results(result) Name or None

Extract Closest Physics Object Results

Parameters:

result (ClosestPhysicsObjectResult) –

Returns:

out_name (Name):

Return type:

Name or None

classmethod get_closest_physics_object_from_world_location(component, world_location) ClosestPhysicsObjectResult

Get Closest Physics Object from World Location

Parameters:
Return type:

ClosestPhysicsObjectResult

classmethod get_physics_object_world_transform(component, bone_name) Transform

Get Physics Object World Transform

Parameters:
Return type:

Transform