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"

Any way to disable the rotation limit?

Hello! I am trying to get a character to be able to run up loops/walls and the such. I have got the character to be able to rotate when walking on surfaces (albeit a little laggy), but whenever i try and go upside down using it, this happens. alt text

I can never go any higher than this, no matter how high i put the max step count.

alt text

Here is the rotation blueprint i am using. Thanks in advance!

Product Version: Epic Games Launcher
sigh.png (655.0 kB)
rot.png (189.2 kB)
more ▼

asked Jun 02 '18 at 12:14 AM in Blueprint Scripting

avatar image

The Bonk Batter
41 1 1 7

avatar image The Bonk Batter Jun 07 '18 at 05:37 AM

Please help!

avatar image MrMcKvarz Jun 07 '18 at 12:59 PM

Hi, I think the issue is gimbal lock since standard pawn doesn't resolve that issue you have to do that on your own.

avatar image The Bonk Batter Jun 08 '18 at 11:06 PM

It may be. I looked into it, and tried to fix it, but it just made my pawn move around constantly and fly off into oblivion, though.

avatar image phisigma Jun 11 '18 at 03:20 PM

Why do you just add the vector (0, 0, -600)? Don’t you want to get the position of the “feet”? So you need to rotate this vector acording to the current rotation of the mesh, or did I miss something?

avatar image The Bonk Batter Jun 12 '18 at 04:47 AM

I found this rotation code online, Can't remember where from though. These are the values they set, but maybe its wrong.

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

2 answers: sort voted first

Looks like this person figured all that stuff out back in 2015: https://forums.unrealengine.com/community/work-in-progress/28494-sonic-unreal-worlds-open-source-ue4-sonic-engine

Maybe they can help.

more ▼

answered Jun 07 '18 at 01:43 PM

avatar image

3.8k 18 20 20

avatar image The Bonk Batter Jun 08 '18 at 06:14 AM

I came across this awhile ago, and looked into it. I could not find where the slope coding is, and it may not work in 2d. I'll continue looking into it though.

avatar image The Bonk Batter Jun 08 '18 at 06:40 AM

Okay, i found the code, but it involves all the other variables for other parts of the blueprint. So i may have to fix it myself..

avatar image mightyenigma Jun 08 '18 at 06:13 PM

I'm interested too -- can you link me to the code?

avatar image The Bonk Batter Jun 08 '18 at 11:09 PM

![alt text][1]

one of these two. [1]: /storage/temp/243614-2.png

1.png (236.0 kB)
2.png (209.8 kB)
avatar image The Bonk Batter Jun 11 '18 at 08:08 AM

I found this (https://www.youtube.com/watch?v=qYqvnu4jit0) which may help, but its mostly c++... and not open source.

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

Perhaps I didn’t get the point, but when the rotation of your character is the only problem and it shall just stand upright on the ground, then you just have to find the desired normal vector.

Instead of adding (0, 0, -600) to the character mesh, you have to add it in local space, i. e. rotate the vector corresponding to the mesh’s world rotation:

detail of correction

Just connect the output of this snippet to the “End” input of LineTraceByChannel. The rest can remain unchanged.

rotation.jpg (81.5 kB)
more ▼

answered Jun 12 '18 at 07:20 AM

avatar image

195 3 8 11

avatar image The Bonk Batter Jun 12 '18 at 08:08 AM

Thanks! I'll try this out! But if your confused about the point, it's trying to make a character be able to go through loops (with enough momentum, but thats later). Currently when attempting this the character will walk up it fine, but when its a straight wall will just slam to a halt and will refuse to keep moving.

avatar image The Bonk Batter Jun 13 '18 at 04:29 AM

Oh, also, whenever i walk off a platform, i just magnet to the ground. Any fix?

avatar image phisigma Jun 13 '18 at 06:45 AM

That’s how gravity works, no “fix” needed. Let’s concentrate on one thing: Did my hint help you and solve the problem? Falling off a platform would be another thread.

avatar image The Bonk Batter Jun 13 '18 at 07:21 AM

Ah, sorry. I added it in and barley saw a distance. Still got locked in place at very high rotations. But it somehow added momentum if you stop holding forward, so that's nice!

avatar image phisigma Jun 13 '18 at 07:47 AM

Your initial question has nothing to do with momentum or with locks. And your last comment is not an answer to my question, or is it?

I move along, wish you good luck and am going to have a barley containing beverege. Furthermore, I recommand you to use the forum, as you want to develop a complex situation rather than having a clear question answered.

avatar image The Bonk Batter Jun 14 '18 at 05:09 AM

Hm, I'll try that. Thanks for trying, and, uh... Sorry for wasting your time. I pefer apple cider myself.

avatar image mightyenigma Jun 12 '18 at 03:35 PM

I saw something recently that makes me think that Walkable Slope and CharacterMovement component are part of what's causing this limitation. I saw in a live training about AI that a character will step up onto the top of a wall from below, even a vertical one, if the combination of the navmesh and the charmovement component settings tells it that it can, like stepping up a stair (no jumping required, just walk into it).

This might be an obstacle to making your character run through loops too.

avatar image The Bonk Batter Jun 13 '18 at 04:31 AM

Sure sounds about right. Maybe i could try making a custom character movement? Also, I cant seem to find walkable slope in the character movement component, so it may be only for AI.

(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