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"

"CollisionEnabled" setting of camera does not allow me to use AddForce

Hello, apologies in advance if it's a really trivial question, but i have found answers nowhere. My objective is to apply a force to my Static Mesh, which has a camera with a spring arm attached, like so: alt text

If i try to add the force with a simple piece of code like this:

 Fvector test.Z = 0.42*900.81;
 DroneStaticMeshComponent->AddForce(test);

I get a warning saying: "DronePawn_2.StaticMeshComponent_0 MatineeCam_SM has to have 'CollisionEnabled' set to 'Query and Physics' or 'Physics only' if you'd like to AddForce."

Of course the physics, collision of the mesh and gravity are enabled.

Now, I understood that I have to change the collision settings either of the camera or the spring arm, but i haven't seen anything in them that fixed the issue. The only available settings are "Can ever affect navigation", which is off and "Do collision test" which is also off.

If i delete the camera the force is applied correctly. Am I missing something? Note that the neither the camera or the spring arm have scripts or blueprints associated to them.

Product Version: UE 4.19
Tags:
cattura.png (773.3 kB)
more ▼

asked Jul 26 '18 at 08:21 PM in Using UE4

avatar image

EvergreenDesert
11 1 3

avatar image EvergreenDesert Jul 27 '18 at 12:50 PM

Bumping hoping someone sees it.

(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