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"

problem with Static Mesh Component tick

Hey,

i want a static mesh component (which is attached to a static mesh actor as his root component) to tick. I am creating just a big box and made it simulate physics and changed the bCanEverTick in the actor and the component to true. i have no idea why but the TickComponent function just not called. is there anything else i need to do?

Product Version: Not Selected
Tags:
more ▼

asked Nov 15 '14 at 06:51 PM in C++ Programming

avatar image

mdluffy
8 4 6 13

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

1 answer: sort voted first

Answer

Try adding this to your constructor!

 bAutoActivate                             = true;
 PrimaryComponentTick.bCanEverTick     = true;
 PrimaryComponentTick.TickGroup         = TG_PrePhysics;

(also if you are ticking it you probably always want to make sure it is set to movable (just wild guess here))

I've spent more time debugging the lack of setting static mesh comp to movable than anything else related to static meshes :)

 //Move-able!
 StaticMeshComponent->SetMobility(EComponentMobility::Movable);


more ▼

answered Nov 16 '14 at 04:04 AM

avatar image

Rama
10.6k 444 343 1081

avatar image mdluffy Nov 16 '14 at 03:53 PM

thanks it helped!

(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