mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-01 08:20:00 +02:00
commit
ff17aa7745
4 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ Item {
|
||||||
|
|
||||||
SoundEffect {
|
SoundEffect {
|
||||||
id: buttonClickSound
|
id: buttonClickSound
|
||||||
source: "../../../sounds/button-click.wav"
|
source: "../../../sounds/Gamemaster-Audio-button-click.wav"
|
||||||
}
|
}
|
||||||
|
|
||||||
function playButtonClickSound() {
|
function playButtonClickSound() {
|
||||||
|
|
BIN
interface/resources/sounds/Gamemaster-Audio-button-click.wav
Normal file
BIN
interface/resources/sounds/Gamemaster-Audio-button-click.wav
Normal file
Binary file not shown.
Binary file not shown.
|
@ -2040,8 +2040,8 @@ function MyController(hand) {
|
||||||
this.ensureDynamic = function() {
|
this.ensureDynamic = function() {
|
||||||
// if we distance hold something and keep it very still before releasing it, it ends up
|
// if we distance hold something and keep it very still before releasing it, it ends up
|
||||||
// non-dynamic in bullet. If it's too still, give it a little bounce so it will fall.
|
// non-dynamic in bullet. If it's too still, give it a little bounce so it will fall.
|
||||||
var props = Entities.getEntityProperties(this.grabbedEntity, ["velocity", "dynamic"]);
|
var props = Entities.getEntityProperties(this.grabbedEntity, ["velocity", "dynamic", "parentID"]);
|
||||||
if (props.dynamic) {
|
if (props.dynamic && props.parentID == NULL_UUID) {
|
||||||
var velocity = props.velocity;
|
var velocity = props.velocity;
|
||||||
if (Vec3.length(velocity) < 0.05) { // see EntityMotionState.cpp DYNAMIC_LINEAR_VELOCITY_THRESHOLD
|
if (Vec3.length(velocity) < 0.05) { // see EntityMotionState.cpp DYNAMIC_LINEAR_VELOCITY_THRESHOLD
|
||||||
velocity = { x: 0.0, y: 0.2, z:0.0 };
|
velocity = { x: 0.0, y: 0.2, z:0.0 };
|
||||||
|
|
Loading…
Reference in a new issue