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"

How to change angular velocity of physics asset in a Blueprint

I am having a problem discovering how to change the target velocity in a physics asset in a blueprint. Thus far I have been only successful in setting the velocity within the PHaT itself and getting movement by enabling/disabling angular velocity in the blueprint. I know I'm close so I need a little help.


Enabling/disabling movement in blueprint alt text

I've tried changing angular velocity via nodes in the blueprint but that is not working. I have to open the PHaT and change the target velocity and resave to get a different velocity. alt text

Ive tried adding a PHaT swap in blueprints but doing that during simulation is a calamity :)

Product Version: UE 4.17
physicsasset.png (14.7 kB)
blueprint1.png (74.4 kB)
blueprint2.png (112.4 kB)
more ▼

asked Aug 23 '17 at 12:21 AM in Blueprint Scripting

avatar image

3 1 3 6

avatar image gamesmyth27 Oct 12 '17 at 02:22 AM

I am seeking assistance with the blueprint. A physics swap is not ideal in this case as all physics objects reset and the switch is obvious ingame. What I am trying to do is apply force to two wheels of a four wheel object to get forward movement. Simply setting the angular drive in the PHAT works but I want to get an opposite target velocity. The goal is to press one key and have the rear two wheels spin to drive the mesh forward; press another key and the two front wheels will spin opposite to push the mesh backward. Do I need to call/cast to the physics asset in the blueprint?

avatar image gamesmyth27 Oct 12 '17 at 02:58 AM

Should I be using two constraint profiles??

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Yes, constraint profiles is the answer. Go Epic!

more ▼

answered Oct 12 '17 at 03:20 AM

avatar image

3 1 3 6

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