Hey, so I’m making a demake of katamari demacy for a local gamejam. Only just picked up blueprints so I’m at a beginners level.
The idea is that, if you collide with an object it attaches to the ball you roll around. The ball increases in size/scale but the objects do not.
I’ve managed to get it working (sort of), however the child objects eventually moves away from the balls surface:
I’m wanting the objects to stick to the surface of the ball.
So yeah, wondering why it’s doing this, don’t necessarily need a fix for this, but just wanting to know why this is happening.
Here’s screenshots of the related blueprints:
Few things to note:
-
All blueprint pickup objects are under a blank blueprint (so I can cast the hit test from one blueprint)
-
All blueprint objects have their scale set to absolute (so they don’t scale with the ball)
-
The blueprint which scales the ball and sets objects to children on hit is a modified third person blueprint
-
The collision of the ball stays the same size as the ball when scaled up
-
I’m scaling the capsule and not the ball so that the collision also scales up as the same size of the ball
-
I turn off collisions of the objects when they are picked up so they don’t get in the way of rolling