Merge pull request #9464 from sethalves/tablet-ui

Tablet ui
This commit is contained in:
Seth Alves 2017-01-20 14:51:16 -08:00 committed by GitHub
commit ff17aa7745
4 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ Item {
SoundEffect {
id: buttonClickSound
source: "../../../sounds/button-click.wav"
source: "../../../sounds/Gamemaster-Audio-button-click.wav"
}
function playButtonClickSound() {

View file

@ -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 };