For the past couple of days, I’ve been working on an egg hatching system similar to the one in Pet Simulator 99. However, every time I try to create the eggs, they end up looking weird and out of place. I tried to adjust the eggs orientation based on the CurrentCamera’s position, but that didn’t solve the problem (=> made it so the egg looks on CurrentCamera’s position).
In Pet Simulator 99, the eggs look very clean and always appear straight, which makes them look great (see the picture below). Can anyone help me understand how to achieve this “effect”?
Hey, currently i’m not trying to automatically calculate the positions because I just wanted to replicate that effect. After I set the positions of the eggs based on the table, I use CFrame.lookAt(egg.Position, CurrentCamera.CFrame.Position) to try and achieve the same effect, but it didn’t work as expected (to make the eggs look “straight”).
The table looks like this:
local Eggs = {
[3] = { – 3 Eggs
[1] = CFrame.new(0, 0, -8), – Position for the first egg → CurrentCamera.CFrame * that CFrame
…
}
}
I also don’t have a single clue on how could it be automated so that’s why I chose the table method.
If you look at the left ones, you can see that they are rotated slightly to kind of “look” at the camera. Here are more photos where you can see it more clearly.