mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +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) {
|
void Keyboard::scaleKeyboard(float sensorToWorldScale) {
|
||||||
auto entityScriptingInterface = DependencyManager::get<EntityScriptingInterface>();
|
auto entityScriptingInterface = DependencyManager::get<EntityScriptingInterface>();
|
||||||
|
|
||||||
|
{
|
||||||
|
EntityItemProperties properties;
|
||||||
|
properties.setDimensions(_anchor.originalDimensions * sensorToWorldScale);
|
||||||
|
entityScriptingInterface->editEntity(_anchor.entityID, properties);
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
EntityItemProperties properties;
|
EntityItemProperties properties;
|
||||||
properties.setLocalPosition(_backPlate.localPosition * sensorToWorldScale);
|
properties.setLocalPosition(_backPlate.localPosition * sensorToWorldScale);
|
||||||
|
|
Loading…
Reference in a new issue