x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Pickup custom physics objects?

I'm pretty new to using Unreal 4 and blueprints, so I'm still learning exactly how everything works.

For gaining familiarity with the engine I wanted to import custom objects into the first person blueprint, attach physics to them and then get the player to pick up these objects and throw them.

I've taken a look at the Unreal Content Examples map that has exactly what I hope to achieve, but I'm unsure exactly how to find what I need to create in the blueprints to get the same effect in my project.

Could anyone give me any guidance?

Product Version: Not Selected
Tags:
more ▼

asked Nov 12 '14 at 12:49 PM in Using UE4

avatar image

Novrasplice
11 2 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Novrasplice,

Here is a tutorial I created on how to set this up in blueprints. If you have any questions, just let me know.

https://wiki.unrealengine.com/Pick_Up_Physics_Object_Tutorial

Cheers,

TJ

more ▼

answered Nov 13 '14 at 07:03 PM

avatar image

TJ V ♦♦ STAFF
41.1k 1009 183 493

avatar image Novrasplice Nov 13 '14 at 07:14 PM

Thanks very much! I'll give this a go and see if it works.

avatar image Raventp Dec 12 '14 at 06:38 PM

I'm having some trouble following that tutorial... it might be helpful to see the list of variables you needed to make in the character's blueprint, and also the components needed. The weight is a little confusing as well, do you need to make a variable for all meshes to determine their weight? Or is it something done automatically in the engine depending on the objects size?

avatar image TJ V ♦♦ STAFF Dec 12 '14 at 09:08 PM

Hi Raventp,

Here is a list of all of the Variables in the tutorial as well as their Types and Default values. Many variables are set in realtime during play so the default value doesn't effect them.

  • Physics Handle Active : Boolen : False

  • Is Held? : Boolen : False

  • Other Item Location : Float : 0.0

  • Pick Up Distance : Float : 500

  • Handle Location : Vector : 0.0x0.0x0.0

  • Other Item Rotation : Rotator : 0.0x0.0x0.0

  • Physics Handle : Physics Handle Component : None

  • Physics Object : Object : None

  • Physics Object Types : EObjectTypeQuery : Physics Body

As for the weight, the engine calculates the weight of an object depending on it's size. Of course this value can be adjusted per mesh. The 500 lbs value works for be but it can be adjusted to whatever you need it to.

I hope this answers your questions and if you find anything else confusing please let me know. I will update the tutorial with this list of variables.

Cheers,

TJ

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question