Mortar Pro Plugin  Version 2
Modular Turret Plugin
All Classes Namespaces Functions Variables Enumerations Enumerator Pages
UMortarProBarrelMeshComponent Class Reference

#include <MortarProBarrelMeshComponent.h>

+ Inheritance diagram for UMortarProBarrelMeshComponent:
+ Collaboration diagram for UMortarProBarrelMeshComponent:

Public Member Functions

void Elevate (const FVector &ElevateDirection)
 
float GetMaxElevationDegrees () const
 
float GetMaxElevationSpeed () const
 
float GetMinElevationDegrees () const
 
void SetMaxElevationDegrees (const float &MaxElevationDegree)
 
void SetMaxElevationSpeed (const float &ElevationSpeed)
 
void SetMinElevationDegrees (const float &MinElevationDegree)
 

Protected Attributes

float MaxElevationDegrees = 70.f
 
float MaxElevationSpeed = 180.f
 
float MinElevationDegrees = -30.f
 

Detailed Description

This is the top most Part of the Mortar From where The Projectile will actually fire. This mesh can only elevate

Member Function Documentation

◆ Elevate()

void UMortarProBarrelMeshComponent::Elevate ( const FVector &  ElevateDirection)

Function to Elevate the barrel based on the speed mentioned based on The Direction Specified

Parameters
[in]ElevateDirectionFVector Containing Direction In which Barrel has to elevate

◆ GetMaxElevationDegrees()

float UMortarProBarrelMeshComponent::GetMaxElevationDegrees ( ) const

Getter Function to Get Max Elevation Degrees the barrel can go upto

Returns
MaxElevationDegrees in float

◆ GetMaxElevationSpeed()

float UMortarProBarrelMeshComponent::GetMaxElevationSpeed ( ) const

Getter Function to Get Maximum Elevation speed Per Second

Returns
ElevationSpeed in float

◆ GetMinElevationDegrees()

float UMortarProBarrelMeshComponent::GetMinElevationDegrees ( ) const

Getter Function to Get Min Elevation Degrees the barrel can go

Returns
MinElevationDegrees in float

◆ SetMaxElevationDegrees()

void UMortarProBarrelMeshComponent::SetMaxElevationDegrees ( const float &  MaxElevationDegree)

Function to Set Maximum Elevation Degrees

Parameters
[in]MaxElevationDegreeMaximum Degree to Set for Elevation

◆ SetMaxElevationSpeed()

void UMortarProBarrelMeshComponent::SetMaxElevationSpeed ( const float &  ElevationSpeed)

Function to Set Maximum Elevation speed Per Second

Parameters
[in]ElevationSpeedMaximum Elevation Speed

◆ SetMinElevationDegrees()

void UMortarProBarrelMeshComponent::SetMinElevationDegrees ( const float &  MinElevationDegree)

Function to Set Minimum Elevation Degrees

Parameters
[in]MinElevationDegreeMinimum Degree to Set for Elevation

Member Data Documentation

◆ MaxElevationDegrees

float UMortarProBarrelMeshComponent::MaxElevationDegrees = 70.f
protected

Maximum Elevation of barrel. Lies between -180 to 180

◆ MaxElevationSpeed

float UMortarProBarrelMeshComponent::MaxElevationSpeed = 180.f
protected

Maximum Elevation speed of barrel. Clamped Minimum to 0

◆ MinElevationDegrees

float UMortarProBarrelMeshComponent::MinElevationDegrees = -30.f
protected

Minimum Elevation of barrel.Lies between -180 to 180


The documentation for this class was generated from the following file: