I tried to setup a pick up object.I did not know if it works like the draggable setup.I want my player to pick up the broom and hold it in his hands.
It is just a beginning.Need some help.
Thanks
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
If you're looking to place an object in the Player's hand, you'll want to use the Character: Hold object Action. This is used in the Demo scene, Basement, to place the Sword in Tin Pot's hand when clicked on.
You need to make sure that the Collider is shaped and positioned around the broom, so that the player can click on the broom's visible space to interact with it.
Again, you need to make sure that the child object (the broom model) is cleared of it's position and rotation. Then replace the Sphere Collider with a Box Collider. Change the Box Collider's size/position so that it covers the broom, and then rotate the root object (not the broom) so that the broom is placed how you want, e.g. leaning against the wall.
The Rock in the Physics demo can be inspected as a practical example.
Add a Hotspot component to the base, but don't give it any Interactions. Does "PickUp" appear in your Hotspot menu when you mouse over it?
Ok.Thanks a lot.
I deactivated the setgeometry,put a simple plane in the scene with my player and the pickup object with the broom being active and everything works.Seems to be a layer problem.
Thanks
the pick up object with the childed broom and it works.Isnt it a problem to put
the setgeometry to the default layer?