world also

beta.r3js.org
-=yb4f310 2017-09-01 17:06:04 +02:00
parent cea919a55d
commit 42de37c1dc
3 changed files with 63 additions and 55 deletions

View File

@ -146,6 +146,8 @@ GameLib.Component.COMPONENT_CONTROLS = 0x30;
GameLib.Component.COMPONENT_CONTROLS_EDITOR = 0x31;
GameLib.Component.COMPONENT_CONTROLS_FLY = 0x32;
GameLib.Component.COMPONENT_FRICTION_MATERIAL = 0x33;
GameLib.Component.COMPONENT_FRICTION_CONTACT_MATERIAL = 0x34;
/**
* Returns string name for component number
@ -206,6 +208,7 @@ GameLib.Component.GetComponentName = function(number) {
case 0x31 : return 'GameLib.D3.Controls.Editor';
case 0x32 : return 'GameLib.D3.Controls.Fly';
case 0x33 : return 'GameLib.D3.FrictionMaterial';
case 0x34 : return 'GameLib.D3.FrictionContactMaterial';
break;
}

View File

@ -951,6 +951,11 @@ GameLib.System.GUI.prototype.buildControl = function(folder, componentTemplate,
property === 'aspect'
) {
controllers.push(folder.add(object, property, 0, 5, 0.001));
} else if (
property === 'heightMapScale' ||
property === 'intensity'
) {
controllers.push(folder.add(object, property, 0, 10, 0.001));
} else if (
property === 'widthSegments' ||
property === 'heightSegments'