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"

EncroachingBlockingGeometry always returns true

Hello,

So my situation: I have a Volume that is setup (in the c'tor) like this:

     this->BrushComponent->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
     this->BrushComponent->SetCollisionResponseToChannel(ECollisionChannel::ECC_Pawn, ECollisionResponse::ECR_Block);
 

So as you can see it should NOT block as it is set to query only. At a later stage (but still before any pawn spawns), this is also done:

    auto NewChannel = GetCollisionChannelFromTeam(NewTeam);
     this->BrushComponent->SetCollisionObjectType(NewChannel);   


GetCollisionChannelFromTeam simply returns the first and second custom collision channels, depending on the team.

Now, in my pawn, I have my normal capsule and in the c'tor I make sure it does not block the custom channels that this volumes object type is set to now.

Yet, when calling EncroachingBlockingGeometry it says something is blocking. The engine then either moves the player above or below the Volume. The Pawn then spawns and falls through the volume (as it should).

Because I initially wasn't sure whether something changes my volume after the pawn spawned, allowing it to fall through, I manually called EncroachingBlockingGeometry and sure enough it still says something is blocking even though the pawn is walking around freely in the volume that supposedly blocks it.

Am I misunderstanding something here or is this a bug in EncroachingBlockingGeometry?

cheers,

--Marenz

Product Version: Not Selected
Tags:
more ▼

asked Aug 31 '14 at 10:41 AM in C++ Programming

avatar image

Marenz
18 3 5 9

(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