View SurveyorWheelComponent.cpp
#include "SurveyorWheelComponent.h"
#include "GameFramework/Actor.h"
USurveyorWheelComponent::USurveyorWheelComponent()
{
PrimaryComponentTick.bCanEverTick = true;
WheelRadius = GetWheelRadius();
}
View ShoulderAnchorManager.cs
//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]
View SplineCharacter.cpp
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);
View MusicPlayerComponent.cpp
#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()
View TacopocalypsePawn-CalcRotationDiff.cpp
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;
View MemoryManager.cpp
#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];
View WallRunCharacter.cpp
/**
WallRunCharacter.cpp
Primary player controls for wall running
@author Brandon Austin
@version 0.3 05/24/17
*/
#include "WallRun.h"
#include "WallRunCharacter.h"