Jump to content

SetInput


gamecreator
 Share

Recommended Posts

Was SetInput changed to not trigger when move is 0? I'm trying to call it to rotate my character but it doesn't seem to unless the character is moving.

 

This will rotate the character

 

controller->SetInput(camerarotation.y, 0.000000000000000000001, strafe*speed, jump);

 

but this will not

 

controller->SetInput(camerarotation.y, 0.0, strafe*speed, jump);

  • Upvote 3
Link to comment
Share on other sites

I am having this issue with a new project I am working on as well. It seems like this was a recent change because I remember being able to rotate without using movement in the past.

 

Side note: I wish there was more detailed documentation on the Character Controller. It is one of the features of leadwerks that I use the most and have the most trouble with. Learning about the character controller is through trial and error or hunting down information as the tutorial for it doesn't mention detailed information about all of its perks and quirks.

Things like the x and z rotation being locked, physics shape being preset and unable to be changed, a list of all of the script functions that work/don't work character controllers, etc. would be useful information to have all presented in one place.

  • Upvote 2

Check out my game Rogue Snowboarding- 

https://haydenmango.itch.io/roguesnowboarding

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...