Camera
The free camera. A plugin puts the game’s camera in the scene and steers it through here each frame. Any thread.
FreeCamera
Section titled “FreeCamera”Get it with Api.camera().
claim(changed: Wraith.Lease.Changed | null): Wraith.Leasesteer(entity: number | bigint, camera: import("salamander").Given<Wraith.FreeCamera.State>): voidfocus(point: import("salamander").Given<Wraith.Vec3>): voidactive(): booleanclaim(changed: Wraith.Lease.Changed|nil): Wraith.Leasesteer(entity: integer, camera: Wraith.FreeCamera.State)focus(point: Wraith.Vec3)active(): booleanWraith.Lease? Claim(Wraith.Lease.Changed? changed)void Steer(ulong entity, ref Wraith.FreeCamera.State camera)void Focus(Wraith.Vec3 point)bool Active()sal::Result<Wraith::Lease, Wraith::LeaseError> claim(Wraith::Lease_Changed changed) constvoid steer(uint64_t entity, Wraith::FreeCamera_State *camera) constvoid focus(Wraith::Vec3 point) constbool active() constpub fn claim(&self, changed: wraith::LeaseChanged) -> Result<wraith::Lease, wraith::LeaseError>pub fn steer(&self, entity: u64, camera: *mut wraith::FreeCameraState)pub fn focus(&self, point: wraith::Vec3)pub fn active(&self) -> boolfn claim(self: Wraith.FreeCamera, changed: ?Wraith.Lease.Changed) (Wraith.LeaseError || rt.Failure)!Wraith.Leasefn steer(self: Wraith.FreeCamera, entity: u64, camera: *Wraith.FreeCamera.State) voidfn focus(self: Wraith.FreeCamera, point: Wraith.Vec3) voidfn active(self: Wraith.FreeCamera) booluint32_t Wraith_FreeCamera_claim(Wraith_FreeCamera self, Wraith_Lease_Changed changed, Wraith_Lease *out)void Wraith_FreeCamera_steer(Wraith_FreeCamera self, uint64_t entity, Wraith_FreeCamera_State *camera)void Wraith_FreeCamera_focus(Wraith_FreeCamera self, Wraith_Vec3 point)bool Wraith_FreeCamera_active(Wraith_FreeCamera self)A lease on the game’s camera, see Lease. Only the holder’s steer counts.
Fails with LeaseError. Uses Lease.Changed, Lease.
Every frame from where the game sets its camera; Wraith overrides it while the free camera’s on.
entity is the key of the camera on screen, which Wraith views the game through. Set its
transform and camera in the scene once it’s applied. Lease holder only.
Uses FreeCamera.State.
Turns the free camera on and orbits it round point.
Uses Vec3.
active
Section titled “active”FreeCamera.Aim
Section titled “FreeCamera.Aim”Which of the camera’s fields say where it points.
An enum of u8.
| Value | Name | |
|---|---|---|
| 0 | target |
At target, tipped by roll |
| 1 | rotation |
By rotation |
FreeCamera.State
Section titled “FreeCamera.State”A struct, 0x40 bytes, aligned to 4.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | position |
Vec3 |
|
| 0xc | aim |
FreeCamera.Aim |
|
| 0x10 | target |
Vec3 |
|
| 0x1c | up |
Vec3 |
|
| 0x28 | rotation |
Quat |
|
| 0x38 | roll |
f32 |
|
| 0x3c | fov |
f32 |
In radians |
position: Wraith.Vec3aim: Wraith.FreeCamera.Aimtarget: Wraith.Vec3up: Wraith.Vec3rotation: Wraith.Quatroll: numberfov: numberposition: Wraith.Vec3aim: Wraith.FreeCamera.Aimtarget: Wraith.Vec3up: Wraith.Vec3rotation: Wraith.Quatroll: numberfov: numberWraith.Vec3 PositionWraith.FreeCamera.Aim AimWraith.Vec3 TargetWraith.Vec3 UpWraith.Quat Rotationfloat Rollfloat FovWraith::Vec3 positionWraith::FreeCamera_Aim aimWraith::Vec3 targetWraith::Vec3 upWraith::Quat rotationfloat rollfloat fovpub position: wraith::Vec3pub aim: wraith::FreeCameraAimpub target: wraith::Vec3pub up: wraith::Vec3pub rotation: wraith::Quatpub roll: f32pub fov: f32position: Wraith.Vec3aim: Wraith.FreeCamera.Aimtarget: Wraith.Vec3up: Wraith.Vec3rotation: Wraith.Quatroll: f32fov: f32Wraith_Vec3 positionWraith_FreeCamera_Aim aimWraith_Vec3 targetWraith_Vec3 upWraith_Quat rotationfloat rollfloat fovwraith.io · Mods on the Hub · Get Wraith
Made with ♥ by Asgard
