add transformToUnitCube/setPosition/setRotation methods to filament android

This commit is contained in:
Nick Fisher
2022-08-17 12:41:49 +10:00
parent 37700f5f19
commit f3bc9072e5

View File

@@ -203,4 +203,16 @@ extern "C" {
((SceneAsset*)asset)->setTexture(assetPath, renderableIndex);
}
void transform_to_unit_cube(void* asset) {
((SceneAsset*)asset)->transformToUnitCube();
}
void set_position(void* asset, float x, float y, float z) {
((SceneAsset*)asset)->setPosition(x, y, z);
}
void set_rotation(void* asset, float rads, float x, float y, float z) {
((SceneAsset*)asset)->setRotation(rads, x, y, z);
}
}