Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

435 B
Raw Blame
#include "Rules/VerseSpawnPoint.h"

#include "Components/CapsuleComponent.h"

AVerseSpawnPoint::AVerseSpawnPoint(const FObjectInitializer& ObjectInitializer)
	: Super(ObjectInitializer)
{
}

FVector AVerseSpawnPoint::GetFloorLocation() const
{
	const UCapsuleComponent* Capsule = GetCapsuleComponent();
	const double Half = Capsule ? Capsule->GetScaledCapsuleHalfHeight() : 0.0;
	return GetActorLocation() - FVector(0.0, 0.0, Half);
}