This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SurveyorWheelComponent.h" | |
#include "GameFramework/Actor.h" | |
USurveyorWheelComponent::USurveyorWheelComponent() | |
{ | |
PrimaryComponentTick.bCanEverTick = true; | |
WheelRadius = GetWheelRadius(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Dynamically calculated head size values upon arkit face added event | |
//Estimated head height used to determine head's pivot | |
[System.NonSerialized] | |
public float headHeight = 0.0547f; | |
//Estimated head depth used to determine head's pivot | |
[System.NonSerialized] | |
public float headDepth = 0.0505f; | |
public float headWidth = 0.0447f; | |
//Shoulder width should equal ~ 2x head height | |
[System.NonSerialized] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ASplineCharacter::MoveRight(float Value) | |
{ | |
if (GameStateRef == nullptr || GameStateRef->MovementSpline == nullptr) | |
{ | |
AddMovementInput(FVector(0.f, -1.f, 0.f), Value); | |
return; | |
} | |
//Orient and move player in the direction of the spline | |
SplineDirection = GameStateRef->MovementSpline->Spline->FindDirectionClosestToWorldLocation(GetActorLocation(), ESplineCoordinateSpace::World); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Tacopocalypse.h" | |
#include "MusicTrackData.h" | |
#include "TacoSingleton.h" | |
#include "Engine.h" | |
#include "SoundDefinitions.h" | |
#include "MusicPlayerComponent.h" | |
// Sets default values for this component's properties | |
UMusicPlayerComponent::UMusicPlayerComponent() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FVector ATacopocalypsePawn::CalcQuatDifference() | |
{ | |
//Get the current rotation in quaternion | |
FQuat CurrentQuat = GetTransform().GetRotation(); | |
//Get the quaternion rotational difference | |
FQuat TempQuat = PrevQuat.Inverse() * CurrentQuat; | |
//Update the previous rotation value | |
PrevQuat = CurrentQuat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "MemoryManager.h" | |
namespace MemoryManager | |
{ | |
//Helper functions to help determine allocation sizes | |
int convertSize(int x); | |
int calcSize(int right, int left); | |
const int MM_POOL_SIZE = 65536; | |
char MM_pool[MM_POOL_SIZE]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
WallRunCharacter.cpp | |
Primary player controls for wall running | |
@author Brandon Austin | |
@version 0.3 05/24/17 | |
*/ | |
#include "WallRun.h" | |
#include "WallRunCharacter.h" |