- Home /
Rigidbody from RigidBodyFPSController not being accepted by slot in public rigidbody space,RigidBody from RigidBodyFPSController not allowing me to drag it into another scripts public rigidbody slot.
just what the title suggests. I have a script that says public rigid body and in the unity editor I wanted to drag the RigidBodyFPSControllers rigidbody into it (so that i could add force to it from a different script on a separate object) but when I drag it into the slot it won't accept the RigidBodyFPSControllers rigidbody. edit the public rigidbody is in a script attached to a ball prefab, i want to be able to drag the rigidbody from the rigidbodyfpscontroller into the slot in the inspector but it doesn't accept it. am i not allowed to drag a rigidbody from another object into that space?
select the object that has the script with the public rigidbody field and take a screen shot to show here. I am imagining that you are maybe trying to drag the RigidBodyFPSCOntrollers object into the field, and this is not how to do it. If you notice, to the right of the public field, there is a circle which if clicked shows the different instances of the rigidbody component by showing the object it is attached to. Select the object that the rigidbody is attached to in the scene and that should populate the field with the correct instance of rigidbody
Your answer
Follow this Question
Related Questions
Game Object seems to move on it's own 0 Answers
Glitch when erasing rigidbody's velocity to "calculate" new 0 Answers
Updating Velocity for a Rigidbody Collision 1 Answer
Collision script don't work. 1 Answer
drag rigidbodies script 1 Answer