setEnabledTranslations
Sets which translations are enabled for the physics object.
Syntax
object.setEnabledTranslations(translations);
Parameters
Name | Type | Description |
---|---|---|
translations | [ Boolean3Array](/sdk/types/Boolean3Array) | An array of booleans indicating which translations are enabled. |
Example
// Enable only the Y translation.
object.setEnabledTranslations([false, true, false]);
Available on: Client Server