mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
commit
ff17aa7745
4 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ Item {
|
|||
|
||||
SoundEffect {
|
||||
id: buttonClickSound
|
||||
source: "../../../sounds/button-click.wav"
|
||||
source: "../../../sounds/Gamemaster-Audio-button-click.wav"
|
||||
}
|
||||
|
||||
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() {
|
||||
// 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.
|
||||
var props = Entities.getEntityProperties(this.grabbedEntity, ["velocity", "dynamic"]);
|
||||
if (props.dynamic) {
|
||||
var props = Entities.getEntityProperties(this.grabbedEntity, ["velocity", "dynamic", "parentID"]);
|
||||
if (props.dynamic && props.parentID == NULL_UUID) {
|
||||
var velocity = props.velocity;
|
||||
if (Vec3.length(velocity) < 0.05) { // see EntityMotionState.cpp DYNAMIC_LINEAR_VELOCITY_THRESHOLD
|
||||
velocity = { x: 0.0, y: 0.2, z:0.0 };
|
||||
|
|
Loading…
Reference in a new issue