mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 05:48:39 +02:00
keyboard handle scaling
This commit is contained in:
parent
e4958b3b0f
commit
a026933819
1 changed files with 6 additions and 0 deletions
|
@ -373,6 +373,12 @@ void Keyboard::raiseKeyboardAnchor(bool raise) const {
|
|||
void Keyboard::scaleKeyboard(float sensorToWorldScale) {
|
||||
auto entityScriptingInterface = DependencyManager::get<EntityScriptingInterface>();
|
||||
|
||||
{
|
||||
EntityItemProperties properties;
|
||||
properties.setDimensions(_anchor.originalDimensions * sensorToWorldScale);
|
||||
entityScriptingInterface->editEntity(_anchor.entityID, properties);
|
||||
}
|
||||
|
||||
{
|
||||
EntityItemProperties properties;
|
||||
properties.setLocalPosition(_backPlate.localPosition * sensorToWorldScale);
|
||||
|
|
Loading…
Reference in a new issue