Hi everybody,
The following problem:
I have a plane on which several spheres are. Every sphere has a rigidbody and a sphere colider. They change randomly their scales between 5 and 7. Now i want to push them against each other and they should bounce on the plane but not in the y direction. Is that possible?
Thank you very much in advance!
How can they “bounce”? I presume you are speaking of reflecting their trajectory on a plane? If so I think that you should scale randomly by increments, maybe using Lerp and let the physics engine take care of placement in the LateUpdate.
HTH
what is the effect of just running them into each other?
is there a bounce in the Y?
if so, perhaps just set the Y of the objects to 0 in Update() ? (if your level is flat?)
I think he’s aiming for Little Big Planet-like physics, which only operate in 2d, but the game itself is 3D.
My idea would also be to lock the Y axis of your objects on the Update() loop, like Saeblundr said.
Cheers