Closed kaba992 closed 11 months ago
Small Update i fixed that issue now i am just looking for some way to scale and change Y position of my shark with thi matrixAutoUpdate set to false thx :)
if you want to transform the render item just a single time, I recommend you do this by transforming the shark's geometry. Meaning use one of the transformation methods of three.js
's BufferGeometry
class. Try it with scale()
and translate()
:
https://threejs.org/docs/index.html#api/en/core/BufferGeometry.scale https://threejs.org/docs/index.html#api/en/core/BufferGeometry.translate
Thank you so much for the quick answer. Scaling the geometry is working, so the scale is performing a ping-pong effect, like scaling up to the new geometry's target scale and then scaling down to the object's initial scale. any Idea? Thx
Hello First of all, I want to thank you for this extraordinary library. I tried to use the steering pursuit to make my shark chase after my cube, but when I launch the game, the shark splits in two and remains buggy as shown in the video. here is my pursuit code:
Thx for any Help and sorry for long message The shark is Gltf model and cube is simple three.js boxGeometry.
https://github.com/Mugen87/yuka/assets/89903118/c57bf466-ad88-4ff0-b073-3ebfc63d358d