mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 09:54:11 +02:00
no more velocity
This commit is contained in:
parent
41df11f614
commit
d65dcf7142
2 changed files with 4 additions and 4 deletions
|
@ -33,7 +33,7 @@
|
|||
dynamic: false
|
||||
});
|
||||
Script.setTimeout(function() {
|
||||
Entities.editEntity(_this.entityID, {dynamic: true});
|
||||
Entities.editEntity(_this.entityID, {dynamic: true, velocity: ZERO_VEC});
|
||||
}, 100);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
var orientation = Camera.getOrientation();
|
||||
var orientation = MyAvatar.orientation;
|
||||
orientation = Quat.safeEulerAngles(orientation);
|
||||
orientation.x = 0;
|
||||
orientation = Quat.fromVec3Degrees(orientation);
|
||||
var center = Vec3.sum(MyAvatar.position, Vec3.multiply(3, Quat.getFront(orientation)));
|
||||
var center = Vec3.sum(MyAvatar.getHeadPosition(), Vec3.multiply(2, Quat.getFront(orientation)));
|
||||
|
||||
|
||||
Script.include("../libraries/utils.js");
|
||||
|
@ -33,7 +33,7 @@ var visualEntity = Entities.addEntity({
|
|||
angularDamping: 1,
|
||||
color: {red: 0, green: 200, blue: 10},
|
||||
dynamic: true,
|
||||
position: Vec3.sum(center, {x: 0, y: 0.2, z: 0}),
|
||||
position: Vec3.subtract(center, {x: 0, y: 0.2, z: 0}),
|
||||
script: VISUAL_SCRIPT_URL
|
||||
});
|
||||
Script.setTimeout(function() {
|
||||
|
|
Loading…
Reference in a new issue