GameObjects own Gravity / Attraction

Hi there!

Is it possible that one cube could force an attraction to another game-object (the player)? How could I realize that?

thanx!

Check this one. http://www.unifycommunity.com/wiki/index.php?title=Gravity

You can translate the player in the direction of player and the cube. you just need to subtract cube position from player's and normalize it, and then multiply it to amount of force you want to apply to it.

what about the funky idea to make the player a child of the cube? wouldn't that work like forcing him to the parent-object?