Class PhysicsSpringComponent
Note: this component is still work in progress.
Inherited Members
Namespace: UE4.Engine
Assembly: UE4DotNet.dll
Syntax
public class PhysicsSpringComponent : SceneComponent
Remarks
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.
Properties
| Improve this Doc View SourcebIgnoreSelf
Declaration
public bool bIgnoreSelf { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static PhysicsSpringComponent DefaultObject { get; }
Property Value
Type | Description |
---|---|
PhysicsSpringComponent |
SpringChannel
Strength of thrust force applied to the base object.
Declaration
public byte SpringChannel { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
SpringCompression
The current compression of the spring. A spring at rest will have SpringCompression 0.
Declaration
public float SpringCompression { get; }
Property Value
Type | Description |
---|---|
System.Single |
SpringDamping
Specifies how quickly the spring can absorb energy of a body. The higher the damping the less oscillation
Declaration
public float SpringDamping { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
SpringLengthAtRest
Determines how long the spring will be along the X-axis at rest. The spring will apply 0 force on a body when it's at rest.
Declaration
public float SpringLengthAtRest { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
SpringRadius
Determines the radius of the spring.
Declaration
public float SpringRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
SpringStiffness
Specifies how much strength the spring has. The higher the SpringStiffness the more force the spring can push on a body with.
Declaration
public float SpringStiffness { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceGetNormalizedCompressionScalar()
Returns the spring compression as a normalized scalar along spring direction.
Declaration
public float GetNormalizedCompressionScalar()
Returns
Type | Description |
---|---|
System.Single |
Remarks
0 implies spring is at rest 1 implies fully compressed
GetSpringCurrentEndPoint()
Returns the spring current end point in world space.
Declaration
public Vector GetSpringCurrentEndPoint()
Returns
Type | Description |
---|---|
Vector |
GetSpringDirection()
Returns the spring direction from start to resting point
Declaration
public Vector GetSpringDirection()
Returns
Type | Description |
---|---|
Vector |
GetSpringRestingPoint()
Returns the spring resting point in world space.
Declaration
public Vector GetSpringRestingPoint()
Returns
Type | Description |
---|---|
Vector |
New(UObject, Name)
Spawn an object of this class
Declaration
public static PhysicsSpringComponent New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
PhysicsSpringComponent |
Operators
| Improve this Doc View SourceImplicit(IntPtr to PhysicsSpringComponent)
Convert from IntPtr to UObject
Declaration
public static implicit operator PhysicsSpringComponent(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
PhysicsSpringComponent |