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

Weird movement issue

Hi, I have a weird issue.

I have C++ class for an item. It does really nothing, it just has a static mesh component. A subclass only overrides collision event to heal the player.

My blueprint for it just sets the static mesh and the collision settings to no physics collision and overlap pawn, everything else is ignored. I can't uncheck Simulate Physics since I added movement code to Tick with Sweep (SetActorLocation).

Tick isn't called even though I set PrimaryActorTick.bCanEverTick to true. I first had to check both check boxes in blueprint.

But even if my movement code isn't executed, my items keep moving on negative Z axis for no reason. I spawn them from another actor. They are applied default rotation, a position, and their internal speed vector is set to -1,0,0 multiplied with their speed. (negative x movement).

Inside the item I tell it to Set its location with sweep. It works only like I said with blueprint tick activating. And the code works, but nevertheless it keeps moving on -Z additionally. I don't know why. Please can anyone help me?

Product Version: Not Selected
more ▼

asked Mar 06 '15 at 06:21 AM in Everything Else

avatar image

870 46 44 80

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

1 answer: sort voted first

Lel, that "Enable Gravity" checkbox in the extended physics settings :D Big problem solved, anyone knows anything about the tick activation?

more ▼

answered Mar 06 '15 at 06:31 AM

avatar image

870 46 44 80

(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