sceneview-android icon indicating copy to clipboard operation
sceneview-android copied to clipboard

How to slow down the animation

Open lascadeansal opened this issue 1 year ago • 0 comments

i want to slow down the model animation below is my current code

     ` val car: CompletableFuture<ModelRenderable> = ModelRenderable
        .builder()
        .setSource(context, Uri.parse("3d/$model.glb"))
        .setIsFilamentGltf(true)
        .build()
    CompletableFuture.allOf(car)
        .handle<Any?> { ok: Void?, ex: Throwable? ->
            val modelNode = Node()
            val renderable=modelNode.setRenderable(car.get())
            render=renderable
            render.animate(false).start()
            mSurfaceView.setTransparent(true)
            modelNode.isSelectable = true
            modelNode.localPosition = Vector3(0f, 0f, -4f)
            node = modelNode
            mSurfaceView.scene!!.addChild(node)

        }

`

lascadeansal avatar Dec 25 '23 04:12 lascadeansal