gamecreator Posted December 24, 2016 Share Posted December 24, 2016 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); 3 Quote Link to comment Share on other sites More sharing options...
Haydenmango Posted December 24, 2016 Share Posted December 24, 2016 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. 2 Quote Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
reaper2259 Posted December 24, 2016 Share Posted December 24, 2016 yepp exact same issue, if i jump or move then i can rotate freely but if standing still then no rotation, if i try to rotate then move the character snaps to that direction the instant i move. Quote Link to comment Share on other sites More sharing options...
gamecreator Posted December 24, 2016 Author Share Posted December 24, 2016 I wonder if this is an optimization attempt by Josh, to try to make controllers faster by not calling the function when it's "inactive." Still, Josh, could you please move this to Bug Reports (or I can create a new thread there)? Quote Link to comment Share on other sites More sharing options...
tjheldna Posted December 25, 2016 Share Posted December 25, 2016 Just checked one of my projects, I can confirm this also. Quote Link to comment Share on other sites More sharing options...
Josh Posted January 12, 2017 Share Posted January 12, 2017 This was an optimization I made but I didn't think about retrieving the rotation. Will revert it. 4 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
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.