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"

About collision in CharacterBP

The situation : I have a square, I'd like to use it as a playable character, to do so I've created new CharacterBP. There is an inherited Capsule Component inside this BP. This is quiet not the thing I would like to use in my blueprint, I'd rather use a box collision component. However, if I change capsule component collision from Pawn to Overlap, for example, all child components will use Overlap collision as well, which is absolutely not the way I'd like it to be. If I try to make my own character from a PawnBP, I bump into the problem with the movement. Character Movement Component is pretty handy, however, I think you cannot use it inside PawnBP.

So the question is : can I do something with that inherited Capsule Component so that I can use Box Collision Component effectively or is there a way to kinda simulate Character Movement Component in custom Pawn blueprint?

Product Version: UE 4.16
Tags:
more ▼

asked May 30 '17 at 05:59 PM in Blueprint Scripting

avatar image

Discozy
19 7 6 8

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

2 answers: sort voted first

Had to deal with sphere collision and kinda found a way around with all that madness.

more ▼

answered Jun 23 '17 at 11:58 PM

avatar image

Discozy
19 7 6 8

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

However, if I change capsule component collision from Pawn to Overlap, for example, all child components will use Overlap collision as well, which is absolutely not the way I'd like it to be

Are you sure?

It shouldn't work in that way. Some time ago I have made character with NoCollision for main capsule, and Overlap collision for additional capsule and it worked fine.

more ▼

answered May 30 '17 at 06:22 PM

avatar image

redbox
4.3k 82 20 104

avatar image Discozy May 30 '17 at 07:02 PM

Yp, I've just tested it, even inside blank project. Same thing : if you set Capsule Component's collision to OverlapAll, add Box Collision as a child (no other choice) and change its collision to Pawn/BlockAll/etc, it still falls through other meshes/Blueprints (using BlockAll collision).

avatar image saeedc May 30 '17 at 08:55 PM

only the first component which is blocking all can keep your character not going through other meshes. thats why capsule component is the root component.

avatar image redbox May 31 '17 at 04:43 AM

You need to implement how that box blocks character movement...

Well, maybe it is better for you to use capsule, but set its radius and half height to something equal, to get sphere shape?

(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