Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UPhysicsSpringComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsSpringComponent.h |
| Include | #include "PhysicsEngine/PhysicsSpringComponent.h" |
Syntax
UCLASS (HideCategories=(Object, Mobility, LOD), ClassGroup=Physics, ShowCategories=Trigger,
MinimalAPI)
class UPhysicsSpringComponent : public USceneComponent
Remarks
Note: this component is still work in progress. Uses raycast springs for simple vehicle forces Used with objects that have physics to create a spring down the X direction ie. point X in the direction you want generate spring.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIgnoreSelf | If true, the spring will ignore all components in its own actor | |
| TEnumAsByte< enum ECollisionChannel > | SpringChannel | Strength of thrust force applied to the base object. | |
| float | SpringCompression | The current compression of the spring. A spring at rest will have SpringCompression 0. | |
| float | SpringDamping | Specifies how quickly the spring can absorb energy of a body. | |
| float | SpringLengthAtRest | Determines how long the spring will be along the X-axis at rest. | |
| float | SpringRadius | Determines the radius of the spring. | |
| float | SpringStiffness | Specifies how much strength the spring has. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UPhysicsSpringComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | Returns the spring compression as a normalized scalar along spring direction. | ||
| FVector | Returns the spring current end point in world space. | ||
| FVector | Returns the spring direction from start to resting point | ||
| FVector | Returns the spring resting point in world space. |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | TickComponent
(
float DeltaTime, |
Function called every frame on this ActorComponent. |