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"

AddMovementInput For Ladders

Hi, i have been trying to make a ladder using the FPS template. I got the basic trigger volume set up but the problem i currently have is that i cant seem to get the AddMovementInput to work for going up and down.

I have tried a couple of different variations on the current

 // find out which way is forward
 const FRotator Rotation = GetControlRotation();
 FRotator YawRotation(0, Rotation.Yaw, 0);
             
 // Get forward vector
 const FVector Direction = FRotationMatrix(YawRotation).GetUnitAxis(EAxis::X);
 
 // add movement in that direction
 AddMovementInput(Direction, Value);

But without success. I have also tried

 FVector Direction = GetActorUpVector();
 
 // add movement in that direction
 AddMovementInput(Direction, Value);

which also does not work. The result of most of these tests are that instead of moving in a direction, the character just stands still. Anyone know what i could be doing wrong or have any suggestion on how i can do this?

Product Version: Not Selected
Tags:
more ▼

asked Apr 07 '14 at 10:37 AM in C++ Programming

avatar image

Solicio
200 54 53 64

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

1 answer: sort voted first

I guess you have to set character state to Flying and then either play animation with root movement or move character up manually. AFAIK it was done that way in UDK.

more ▼

answered Apr 07 '14 at 11:26 AM

avatar image

BiggestSmile
1.6k 53 38 105

avatar image Solicio Apr 07 '14 at 11:30 AM

What are you referring to when you say "root movement"?

avatar image fdslk Apr 07 '14 at 11:37 AM

That is the mass center of the character. Generally for that kind of animation or movement the root transform you're looking for is a projection on the Y plane

avatar image Solicio Apr 07 '14 at 11:40 AM

Alright, will have to test around a bit then.

(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