Brutile Posted May 28, 2014 Share Posted May 28, 2014 How do you make an object usable for the pickup system in the FPSPlayer script? I've made the object a rigidbody and a prop type, and I've set a mass, but I can't pick it up. Anyone know how to get this working? My object structure is: STATIC_MESH collision cube The properties were set on the STATIC_MESH object Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted May 28, 2014 Share Posted May 28, 2014 You need to set those properties on the object that contains the physics settings. Try putting them on 'Collision' Quote Link to comment Share on other sites More sharing options...
slickman130 Posted May 28, 2014 Share Posted May 28, 2014 Is your Mass set to 2? and did u press fit to shape? Quote Link to comment Share on other sites More sharing options...
Brutile Posted May 29, 2014 Author Share Posted May 29, 2014 It works with a "Box" shape assigned, but what if I wanted a custom collider? Quote Link to comment Share on other sites More sharing options...
Haydenmango Posted May 29, 2014 Share Posted May 29, 2014 It should still work. I have a box that uses 5 "collision" objects to create the physics for the box and I can pick it up using the pickup system. You might have to hide the "collision" objects that are parented to your entity so that your pick hits the entity and not the "collision" object. That worked for me at least and it kept the physics I wanted even though the objects were hidden. 1 Quote Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
Brutile Posted May 29, 2014 Author Share Posted May 29, 2014 That's what I was doing wrong... I didn't have the collision parented. It works now, thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.