-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Blueprint functions (GetDevicePose and GetMotionControllerData)
- Loading branch information
Showing
9 changed files
with
200 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
|
||
#include <sdk/Math.hpp> | ||
|
||
namespace ue5 { | ||
struct FQuat { | ||
double x{}; | ||
double y{}; | ||
double z{}; | ||
double w{}; | ||
}; | ||
} | ||
|
||
namespace ue427 { | ||
enum class EControllerHand : uint8_t { | ||
Left = 0, | ||
Right = 1, | ||
}; | ||
|
||
enum class ETrackingStatus : uint8_t { | ||
NotTracked = 0, | ||
InertialOnly = 1, | ||
Tracked = 2, | ||
ETrackingStatus_MAX = 3, | ||
}; | ||
|
||
struct FName { | ||
int32_t a1{0}; | ||
int32_t a2{0}; | ||
}; | ||
|
||
struct FQuat { | ||
float x{}; | ||
float y{}; | ||
float z{}; | ||
float w{}; | ||
}; | ||
|
||
struct FXRDeviceId { | ||
FName SystemName{}; | ||
int32_t DeviceID{}; | ||
}; | ||
|
||
struct FXRMotionControllerData { | ||
bool bValid; // 0x0 | ||
char pad_1[0x3]; | ||
FName DeviceName; // 0x4 | ||
char pad_c[0x10]; | ||
uint8_t DeviceVisualType; // 0x1c | ||
EControllerHand HandIndex; // 0x1d | ||
ETrackingStatus TrackingStatus; // 0x1e | ||
char pad_1f[0x1]; | ||
glm::vec3 GripPosition; // 0x20 | ||
char pad_2c[0x4]; | ||
FQuat GripRotation; // 0x30 | ||
glm::vec3 AimPosition; // 0x40 | ||
char pad_4c[0x4]; | ||
FQuat AimRotation; // 0x50 | ||
char pad_60[0x30]; | ||
char pad_91[0xf]; | ||
}; // Size: 0xa0 | ||
} |