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"

Change Physics Constraint Angular Rotation Offset at runtime

Is it possible to change the Physics Constraint Angular Rotation Offset in runtime using blueprint or C++? I'm trying to simulate a vehicle completely through physics and I need this for front wheel movement. I know I can use the vehicle movement or fake it through animation system but I'm sorta crazy to do it through physics. :p

alt text

Product Version: Not Selected
Tags:
dd.jpg (304.0 kB)
more ▼

asked Jan 06 '15 at 05:26 PM in Using UE4

avatar image

Xenolit
156 3 4 9

avatar image Sprawl Jan 16 '15 at 03:15 PM

I am having the same question. Can we access "Angular Rotation Offset" parameter of a physics constraint with Blueprints ?

avatar image vnhllsng Sep 10 '15 at 02:47 PM

After a lot of hours spent on the matter, I actually went ahead with the raycast solution. I built my own raycast wheel class, using sphere trace instead of raytrace for the wheel to collide properly with obstacles. I found this video on the matter VERY usefull https://www.youtube.com/watch?v=LG1CtlFRmpU

You can actually do a lot more with raycast. In my case I simulate each wheel separetly. After a while of tinkering I ended up with this:

alt text

And then just snapped wheel models to the trace result transform, and animated them. Works like a charm with all kinds of obstacles.

avatar image Xenolit Sep 11 '15 at 05:53 AM

Thats awesome. well I finally did it using the physics engine. https://www.youtube.com/watch?v=QeihApRvds0 However the suspension damper is currently none existent so my car looks a bit bouncy. I'm gonna use forces and raycasting to implement it. Cheers to space dust racing guys.

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

1 answer: sort voted first

I found this https://answers.unrealengine.com/questions/160044/modify-angular-rotation-offset-at-runtime.html?sort=oldest

So basically the answer is "no, you can't" because this property is set only at initialization.

more ▼

answered Jul 16 '15 at 09:48 AM

avatar image

vnhllsng
149 5 10 149

avatar image Xenolit Jul 16 '15 at 05:44 PM

You are right. How ever I was able to solve the problem with two joints on each wheel.

avatar image vnhllsng Jul 19 '15 at 09:18 AM

Maybe you could elaborate a bit, how you did it? I'm in a very similar situation, and currently am trying to work out a way to do this.

avatar image Xenolit Sep 10 '15 at 07:23 AM

Simply use two joints on each front wheel. one is for motor and suspension the other is for steering.

(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