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"

How to keep characters Feet on ground (Sphere)?

I am trying to make a planet like gravity sphere, I have disabled world gravity and added a Radial Force to my sphere which acts as gravity with the center of the sphere being the center of gravity.

But whenever my character walks on it and gets to one side, he stays touching the sphere because of the gravity, but his feet of not on the sphere.

SEE PICTURES: (excuse the bad drawings...)

What is happening:

alt text

What I want to happen:

alt text

Product Version: UE 4.17
Tags:
capture2.png (12.9 kB)
capture.png (11.4 kB)
more ▼

asked Sep 22 '17 at 05:52 AM in Blueprint Scripting

avatar image

AzzaMatta2571
36 4 8 13

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

1 answer: sort voted first

Did you tried to rotate your character? If that doesn't work, that might be a constraing on character's collision capsue.

more ▼

answered Sep 22 '17 at 02:03 PM

avatar image

Iotti
524 1 4 8

avatar image AzzaMatta2571 Sep 23 '17 at 05:49 AM

How would I rotate the character ? Thanks.

avatar image Iotti Sep 24 '17 at 09:27 PM

Try to use the Find Look At Rotation between the character and the center of the sphere

avatar image AzzaMatta2571 Sep 24 '17 at 11:51 PM

Thanks, but how and where would I implement that?

avatar image Iotti Sep 25 '17 at 01:36 PM

You may implement it on controller, you may create a reference for the sphere in your controller, detect the closest and use the find look at rotation to it.

avatar image AzzaMatta2571 Sep 25 '17 at 02:10 PM

Could you show me an example? Thanks.

(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