Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question How to properly use the movement prefab I purchased?

Discussion in 'Getting Started' started by MotorBurn, Apr 3, 2024.

  1. MotorBurn

    MotorBurn

    Joined:
    Mar 27, 2024
    Posts:
    2
    Hey yall,

    I'm pretty new to game-dev (clearly). I've purchased this controller (https://sites.google.com/view/fpc-advanced-doc/fpc-advanced-doc) from the unity store, and would like to assign it to a capsule. So, I've dragged and dropped it to the the capsule and it's parented. I've also applied a rigid body to the capsule as well. However, the prefab has it's own camera (that I'm currently using because I didn't know how to switch back to the main camera), and when I press play "controller" just falls right through the capsule I attached it to... I'm able to run around and do everything the prefab is designed to do, but I'm not attached to any geometry. It makes the collision noise as if I'm inside the capsule and dragging it around. I can also drag the prefab off of the geometry and then the capsule just floats there.

    Am I not assigning the prefab correctly? Am I thinking about this the wrong way? My smooth brain thinks capsule+rigid body+prefab would work.

    Here's a screenshot and gif (gif is choppy, it doesn't run that slow)

     
  2. MotorBurn

    MotorBurn

    Joined:
    Mar 27, 2024
    Posts:
    2
    Update: I think it's good now? I just made the "modern shooter" prefab the parent, and set the capsule as a child to it. That seemed to work, but I could have sworn when I've programmed my own inputs in a prior tutorial is was he other way around. Seems like a crazy simple answer, but if that was really it, then great. If somebody could confirm this was the issue I'd appreciate it.

    I didn't find an answer online and there were zero videos or tutorials I came across that were helpful. So if anybody knows a tutorial that covers this kind of situation I'd be grateful as well.