Class DefaultPawn
DefaultPawn implements a simple Pawn with spherical collision and built-in flying movement.
Inherited Members
Namespace: UE4.Engine
Assembly: UE4DotNet.dll
Syntax
public class DefaultPawn : Pawn
Remarks
@see UFloatingPawnMovement
Properties
| Improve this Doc View SourcebAddDefaultMovementBindings
Declaration
public bool bAddDefaultMovementBindings { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
BaseLookUpRate
Base lookup rate, in deg/sec. Other scaling may affect final lookup rate.
Declaration
public float BaseLookUpRate { get; }
Property Value
Type | Description |
---|---|
System.Single |
BaseTurnRate
Base turn rate, in deg/sec. Other scaling may affect final turn rate.
Declaration
public float BaseTurnRate { get; }
Property Value
Type | Description |
---|---|
System.Single |
CollisionComponent
DefaultPawn collision component
Declaration
public SphereComponent CollisionComponent { get; }
Property Value
Type | Description |
---|---|
SphereComponent |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static DefaultPawn DefaultObject { get; }
Property Value
Type | Description |
---|---|
DefaultPawn |
MeshComponent
The mesh associated with this Pawn.
Declaration
public StaticMeshComponent MeshComponent { get; }
Property Value
Type | Description |
---|---|
StaticMeshComponent |
MovementComponent
DefaultPawn movement component
Declaration
public PawnMovementComponent MovementComponent { get; }
Property Value
Type | Description |
---|---|
PawnMovementComponent |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceLookUpAtRate(Single)
Called via input to look up at a given rate (or down if Rate is negative).
Declaration
public void LookUpAtRate(float Rate)
Parameters
Type | Name | Description |
---|---|---|
System.Single | Rate |
Remarks
@param Rate This is a normalized rate, i.e. 1.0 means 100% of desired turn rate
MoveForward(Single)
Input callback to move forward in local space (or backward if Val is negative).
Declaration
public void MoveForward(float Val)
Parameters
Type | Name | Description |
---|---|---|
System.Single | Val |
Remarks
@param Val Amount of movement in the forward direction (or backward if negative). @see APawn::AddMovementInput()
MoveRight(Single)
Input callback to strafe right in local space (or left if Val is negative).
Declaration
public void MoveRight(float Val)
Parameters
Type | Name | Description |
---|---|---|
System.Single | Val |
Remarks
@param Val Amount of movement in the right direction (or left if negative). @see APawn::AddMovementInput()
MoveUp_World(Single)
Input callback to move up in world space (or down if Val is negative).
Declaration
public void MoveUp_World(float Val)
Parameters
Type | Name | Description |
---|---|---|
System.Single | Val |
Remarks
@param Val Amount of movement in the world up direction (or down if negative). @see APawn::AddMovementInput()
New(UObject, Name)
Spawn an object of this class
Declaration
public static DefaultPawn New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
DefaultPawn |
TurnAtRate(Single)
Called via input to turn at a given rate.
Declaration
public void TurnAtRate(float Rate)
Parameters
Type | Name | Description |
---|---|---|
System.Single | Rate |
Remarks
@param Rate This is a normalized rate, i.e. 1.0 means 100% of desired turn rate
Operators
| Improve this Doc View SourceImplicit(IntPtr to DefaultPawn)
Convert from IntPtr to UObject
Declaration
public static implicit operator DefaultPawn(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
DefaultPawn |