Struct LaserMovement
An "extension" of the Movement struct to describe the nested movement function of a laser.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Assembly: cs.temp.dll.dll
Syntax
public struct LaserMovement
Constructors
LaserMovement(LVTP, Vector2, V2RV2)
Declaration
public LaserMovement(LVTP path, Vector2 parentLoc, V2RV2 localLoc)
Parameters
Type |
Name |
Description |
LVTP |
path |
|
Vector2 |
parentLoc |
|
V2RV2 |
localLoc |
|
LaserMovement(Single, BPY)
Simple laser variant: fires in a straight line.
Declaration
public LaserMovement(float base_rot_deg, BPY frame_rot)
Parameters
Type |
Name |
Description |
System.Single |
base_rot_deg |
|
BPY |
frame_rot |
|
Fields
cos_rot
Declaration
public readonly float cos_rot
Field Value
Type |
Description |
System.Single |
|
flipX
Declaration
Field Value
Type |
Description |
System.Single |
|
flipY
Declaration
Field Value
Type |
Description |
System.Single |
|
isSimple
Declaration
public readonly bool isSimple
Field Value
Type |
Description |
System.Boolean |
|
rootPos
Declaration
Field Value
sin_rot
Declaration
public readonly float sin_rot
Field Value
Type |
Description |
System.Single |
|
Properties
HasMovingRotation
Declaration
public readonly bool HasMovingRotation { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
FlipX()
Declaration
FlipY()
Declaration
ResetFlip()
Declaration
RotationDeg(ParametricInfo)
Declaration
public float RotationDeg(ParametricInfo bpi)
Parameters
Returns
Type |
Description |
System.Single |
|
Update(in Single, ref ParametricInfo, out Vector2, in Single)
Declaration
public void Update(in float lt, ref ParametricInfo bpi, out Vector2 delta, in float dT)
Parameters
Type |
Name |
Description |
System.Single |
lt |
|
ParametricInfo |
bpi |
|
Vector2 |
delta |
|
System.Single |
dT |
|