Class FloatingPawnMovement
FloatingPawnMovement is a movement component that provides simple movement for any Pawn class.
Inheritance
Inherited Members
Namespace: UE4.Engine
Assembly: UE4DotNet.dll
Syntax
public class FloatingPawnMovement : PawnMovementComponent
Remarks
Limits on speed and acceleration are provided, while gravity is not implemented.
Normally the root component of the owning actor is moved, however another component may be selected (see SetUpdatedComponent()). During swept (non-teleporting) movement only collision of UpdatedComponent is considered, attached components will teleport to the end location ignoring collision.
Properties
| Improve this Doc View SourceAcceleration
Acceleration applied by input (rate of change of velocity)
Declaration
public float Acceleration { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
bPositionCorrected
Declaration
public bool bPositionCorrected { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Deceleration
Deceleration applied when there is no input (rate of change of velocity)
Declaration
public float Deceleration { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static FloatingPawnMovement DefaultObject { get; }
Property Value
Type | Description |
---|---|
FloatingPawnMovement |
MaxSpeed
Maximum velocity magnitude allowed for the controlled Pawn.
Declaration
public float MaxSpeed { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
TurningBoost
Setting affecting extra force applied when changing direction, making turns have less drift and become more responsive.
Declaration
public float TurningBoost { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Remarks
Velocity magnitude is not allowed to increase, that only happens due to normal acceleration. It may decrease with large direction changes. Larger values apply extra force to reach the target direction more quickly, while a zero value disables any extra turn force.
Methods
| Improve this Doc View SourceNew(UObject, Name)
Spawn an object of this class
Declaration
public static FloatingPawnMovement New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
FloatingPawnMovement |
Operators
| Improve this Doc View SourceImplicit(IntPtr to FloatingPawnMovement)
Convert from IntPtr to UObject
Declaration
public static implicit operator FloatingPawnMovement(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
FloatingPawnMovement |