Working on camera ray stuff, not working right now

This commit is contained in:
2024-09-11 16:07:47 -04:00
parent fabbc55b86
commit 6556efed10
5 changed files with 97 additions and 27 deletions

View File

@@ -69,8 +69,17 @@ public:
void UpdateConsoleOutput();
// Update the tangibles according to what Luprex tells us.
// This also includes calling 'AnimationQueueChanged' on all
// tangibles that have been changed.
void UpdateTangibles();
// Maybe call 'BecomePossessed' on the player tangible.
void UpdatePossessedTangible();
// Cast a ray forward from the camera. Update the instance
// variables 'CameraRayTarget' and 'CameraRayChanged'.
void CastCameraRay();
// Pre-tick and post-tick functions.
void OnWorldPreActorTick(UWorld* InWorld, ELevelTick InLevelTick, float InDeltaSeconds);
void OnWorldPostActorTick(UWorld* InWorld, ELevelTick InLevelTick, float InDeltaSeconds);
@@ -110,6 +119,10 @@ public:
// Current Player ID
int64 PlayerId;
// Object in front of camera.
AActor *CameraRayTarget;
bool CameraRayChanged;
// Amount of elapsed time since BeginPlay.
float EngineSeconds;