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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

static mesh falling through landscape

My actor has a static mesh component with these settings set in the constructor:

 RootComponent = MyMesh;

 MyMesh->SetCollisionResponseToChannel(ECollisionChannel::ECC_Pawn, ECollisionResponse::ECR_Ignore);
 MyMesh->SetSimulatePhysics(true);

 SetReplicates(true);
 SetReplicateMovement(true);

I spawn the actor in the air and it falls to ground like expected. But sometimes it falls through the landscape for unknown reasons. I have checked the collision on the mesh and it has both simple and complex collision. The landscape is set to Block All with a default thickness of 16.0. For the mesh the trace and object response are to block everything but the pawn. I have set show collision in the editor and I can see the collision shown when it drops from the air.

Most of the time, it lands on the ground just fine. But sometimes it falls through the landscape. Has anyone had this happen before and know what could be causing it?

How come it only works like expected some of the time?

Product Version: UE 4.18
Tags:
more ▼

asked Mar 09 '18 at 10:20 PM in C++ Programming

avatar image

jr557
48 10 12 19

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first
  MyMesh->GetBodyInstance()->bUseCCD = true;
more ▼

answered Mar 10 '18 at 07:46 AM

avatar image

jr557
48 10 12 19

(comments are locked)
10|2000 characters needed characters left
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