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. 

No collision without gravity

Hi!

I've got problem with collisions. What I want to achive in my game is an adventure game where backgrounds are 2d, and objects(character, inventory objects) are 3d. To achieve moving of player in such a kind of space I had to write my own movement without using CharacterMovement(tough I'm using the template). It's a simple rule. The more player will hold "W" key, the more character will scale down and go in Z axis. And for this I'm using Set Actor Scale, and Set Actor location Blueprints. Here's what I mean: alt text and: alt text But i want a collision where the building starts, so what I tried to do is to give a cube as a child to mesh in Character blueprint and give everything no collision except this cube: alt text Capsule collisions:

alt text

Mesh collisions:

alt text

And cube has BlockAll

But unfortunately this doesn't seem to work. I'm not using Physic simulation and gravity from CharacterMovement is set to 0. Can it be that without physic simulation there is no collisions?

Product Version: UE 4.9
Tags:
close.png (249.5 kB)
far.png (238.5 kB)
nocoll.png (253.3 kB)
capsulecoll.png (27.8 kB)
meshcoll.png (27.9 kB)
more ▼

asked Oct 07 '15 at 03:23 PM in Using UE4

avatar image

Hohel
3 4 6

avatar image Steve_T Oct 07 '15 at 07:10 PM

are you definitely sure your wall mesh has a collision primitive?

avatar image Hohel Oct 07 '15 at 08:03 PM

Yes. When I use default CharacterMovement(with gravity set to 1 and collisions for capsule component on) my character collides with wall.

avatar image Steve_T Oct 07 '15 at 08:05 PM

Hmm would it be possible to keep gravity and make him fly instead?

avatar image Hohel Oct 07 '15 at 08:16 PM

I tried it now. Can it be that because i set Walk/Fly speed to 0 in my blueprint? Cause when I set speed even to 1 collisions suddenly work. I'm setting new location by SetActorLocation I'll try it tommorow.

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

0 answers: sort voted first
Be the first one to answer this question
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