this is the first time i plan to make something like this. This is a small scene of a large aquarium. In the background there should be a shark swimming around that area (later also with small fishes). I dont know how to make it swim freely but i could imagine there is a way to make it swim along a curve or let it move freely in random directions but limited inside a cube (?)
Make it a random sensors that sets an integer property to any in range using uniform integer. Than make each integer random motion. Make the random actuator run, for example, every 60 frames by setting it’s frequency to 60. And make the surrounding cube- if shark collides cube- state 2 which contains delay for setting back to state 1(like 100 frames) and a steering actuator that makes shark flee to the center. This is just an idea, but could be working fine!
I would have a ray or radar pulse, anything in front - eat it, or turn around and swim the other way, and a above and below ray (dont go out of water or hit bottom…
thanks adriansnetlis and BluePrintRandom, i tried out both options, but they make the shark have kinda stiff movements so that it looks abit robotic in the scene.
Im now testing a new way. In my game i dont need gravity so i just let it on 0.0 . And i will make a navmesh like this and the shark will be able to move up and down freely with the curve without falling out , i have a feeling it gonna work this way.
And i need it to move on this path endlessly (circlewise, just like some racing game AIs), does anyone have an idea how to make that?
Hi, all!
I have a question.
How about the aquarium is movable?
I create a duck home which can build in wherever grid plane.
Here is my video.
Please, help me. Thanks.