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"

How To Tell When Actor Touches Ground?

Curious on how would one be able to find out when an Actor/Blueprint touches the ground?

I turn on physics to drop the object to ground, then wish to turn off physics so the object cannot be moved by the player. If I set the static mesh/actor to Static, then I would not be able to allow players to add buildings to the world and move them around.

Any help would be appreciated, thanks

Product Version: Not Selected
Tags:
more ▼

asked Jul 24 '14 at 10:54 PM in Blueprint Scripting

avatar image

DreamBotStudios
146 32 48 54

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

3 answers: sort voted first

Hello, DreamBotStudios!

I needed to do something like this yesterday, and here's how I did it. In the Level blueprint, I put in the following nodes:

alt text

See, when the lamp collides with anything, it stops immediately. If you only want it to stop if it collides with the ground, then you can put in a Branch that checks to see if Other Actor is the same as the ground object. I hope that helps!

Regards,

Jonathan

lamp_physics.png (61.9 kB)
more ▼

answered Jul 25 '14 at 02:07 PM

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

You could try to do something with object channels

https://www.unrealengine.com/blog/collision-filtering

more ▼

answered Jul 24 '14 at 11:53 PM

avatar image

Shadowriver
37.3k 936 172 1116

avatar image danielvmacedo Jul 25 '14 at 02:20 PM

You can have this behavior using what Shadowriver said... the documentation is here: https://docs.unrealengine.com/latest/INT/Engine/Physics/Collision/index.html

Cheers!

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

Have you tried "Is Falling" ?

This means if your player is in the air.

You can unable all action while "Is Falling" is false.alt text

3.png (47.0 kB)
more ▼

answered Jul 26 '14 at 04:05 AM

avatar image

Smomo
179 13 17 33

avatar image DreamBotStudios Jul 27 '14 at 08:04 PM

Thanks for the reply, but its not the player I am checking to fall. Its an Actor which the player creates, then drops into the game world.

(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