#🤷♂ I cant really say much without
1 messages · Page 1 of 1 (latest)
i did upto this
now i want the object go like this red path...in the left side, half in the right
Looks pretty decent so far, is this for like a damaging attack? Maybe you can try to define some path via a bezier curve (or realistically any set of points). Then just move the objects along the path
i can't do the part where half objects will follow right and half will follow left side and will add a force at the end toward the front
maybe a special attack or something like that...to use very rarely
Hmm it may be tedious to have these all done through code. I think an animation would be a lot simpler here if you know how to make one.
I honestly dont know a nice clean way to get that effect dynamically through code. You would have to check what objects are on the left and right side by comparing the local position, and then somehow move them along a path you define.
if i make an animation how can i do it for every objecta...like if the player is in another place and the objects around him are different..then how can i achieve the same system fro those different objects?
Itd work... but an animation could be a lot simpler because you can just drag it in inspector
Ah are these supposed to be for any object set at all, in completely random positions?
yeah yeah..like in the vdo...it gathered all the object near around the player
it would be same in any position and any objects around him
Oh ok I initially thought the objects were something thatd spawn from the character
I guess you can try this, check the local position. Sorry I'm not entirely sure what your best way would be. Ideally you would want to be able to pick these objects up in a way that you can predetermine what the left and right side are. Then force them to be on the correct orientation when it is time to launch them.
i will try it..and try the bezier curve..thank you so much for the help...i never thought about that bezier curve thing
Yea sorry I couldnt provide more help, not on pc right now. The curve I suggested was just so you have a nice way to setup that red line.
If you find a different way to move an object along a defined path then that will work to. Except some of your objects will start further on the path
At the end of the path you could launch them via physics even. If you need them to go further
it was a great help...
🙂
hi!
i couldn't achieve what i wanted to