Attaching an object to a marble that rolls around, but the object should not rotate, merely follow.

Having a tough time wrapping my head around this.

My main “player” is a sphere that is moved with AddForce(). As such, it rolls around. I want to attach a spear to it, but the spear should remain in the position that I place it, not roll around as if it were literally glued to the side of the marble.

Any advice would be greatly appreciated!

I can think of 2 solutions:

  1. Create a follow script and add it to the spear and in Update, make the spear’s position equal to the sphere’s position (plus an optional offset)
  2. Parent the spear to the sphere and add a script to the spear where the script always aligns the spear’s rotation with it’s original rotation at startup.

+1 Thank you much.