Agent properties for rotation

This commit is contained in:
gwigz
2023-03-18 00:06:49 +00:00
parent d75fb9d9d9
commit 47ff640305
2 changed files with 6 additions and 4 deletions

View File

@@ -63,6 +63,8 @@ export class Agent
uiFlags: {
'allowFirstLife'?: boolean
} = {};
headRotation = Quaternion.getIdentity();
bodyRotation = Quaternion.getIdentity();
cameraLookAt: Vector3 = new Vector3([0.979546, 0.105575, -0.171303]);
cameraCenter: Vector3 = new Vector3([199.58, 203.95, 24.304]);
cameraLeftAxis: Vector3 = new Vector3([-1.0, 0.0, 0]);
@@ -237,8 +239,8 @@ export class Agent
agentUpdate.AgentData = {
AgentID: this.agentID,
SessionID: circuit.sessionID,
HeadRotation: Quaternion.getIdentity(),
BodyRotation: Quaternion.getIdentity(),
HeadRotation: this.headRotation,
BodyRotation: this.bodyRotation,
State: AgentState.None,
CameraCenter: this.cameraCenter,
CameraAtAxis: this.cameraLookAt,

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@caspertech/node-metaverse",
"version": "0.5.40",
"version": "0.5.53",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@caspertech/node-metaverse",
"version": "0.5.40",
"version": "0.5.53",
"license": "MIT",
"dependencies": {
"@caspertech/llsd": "^1.0.5",