mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 06:44:07 +02:00
Fixed radio model
This commit is contained in:
parent
11a5358a6e
commit
3baa992bc3
1 changed files with 5 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
var modelURL = "https://s3-us-west-1.amazonaws.com/highfidelity-public/models/entities/radio/Speakers2_DeletedPlanes.fbx";
|
var modelURL = "https://s3-us-west-1.amazonaws.com/highfidelity-public/models/entities/radio/Speakers.fbx";
|
||||||
var soundURL = "https://s3-us-west-1.amazonaws.com/highfidelity-public/sounds/FamilyStereo.raw";
|
var soundURL = "https://s3-us-west-1.amazonaws.com/highfidelity-public/sounds/FamilyStereo.raw";
|
||||||
|
|
||||||
var AudioRotationOffset = Quat.fromPitchYawRollDegrees(0, -90, 0);
|
var AudioRotationOffset = Quat.fromPitchYawRollDegrees(0, -90, 0);
|
||||||
|
@ -31,14 +31,16 @@ function update() {
|
||||||
print("Sound file downloaded");
|
print("Sound file downloaded");
|
||||||
var position = Vec3.sum(MyAvatar.position,
|
var position = Vec3.sum(MyAvatar.position,
|
||||||
Vec3.multiplyQbyV(MyAvatar.orientation,
|
Vec3.multiplyQbyV(MyAvatar.orientation,
|
||||||
{ x: 0, y: 0.3, z: -1 }));
|
{ x: 0, y: -0.3, z: -2 }));
|
||||||
var rotation = Quat.multiply(MyAvatar.orientation,
|
var rotation = Quat.multiply(MyAvatar.orientation,
|
||||||
Quat.fromPitchYawRollDegrees(0, -90, 0));
|
Quat.fromPitchYawRollDegrees(0, -90, 0));
|
||||||
entity = Entities.addEntity({
|
entity = Entities.addEntity({
|
||||||
type: "Model",
|
type: "Model",
|
||||||
position: position,
|
position: position,
|
||||||
rotation: rotation,
|
rotation: rotation,
|
||||||
dimensions: { x: 0.2, y: 0.2, z: 0.2 },
|
dimensions: { x: 0.391,
|
||||||
|
y: 1.000,
|
||||||
|
z: 1.701 },
|
||||||
modelURL: modelURL
|
modelURL: modelURL
|
||||||
});
|
});
|
||||||
properties = Entities.getEntityProperties(entity);
|
properties = Entities.getEntityProperties(entity);
|
||||||
|
|
Loading…
Reference in a new issue