tjheldna Posted March 21, 2014 Share Posted March 21, 2014 Do we have the ability to change the rotational speed value when GoToPoint is used? Cheers! Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted March 21, 2014 Share Posted March 21, 2014 what exactly you mean? to turn the entities smoothly to the directions? I if yes http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/math/mathcurveangle-r603 http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/math/mathdeltaangle-r593 but you have to calculate the angle to the GoToPoint-Point from the entity Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
tjheldna Posted March 21, 2014 Author Share Posted March 21, 2014 With GoToPoint, the entity turns to face the directing it's moving which is all automatic. It's just the speed it rotates to face the desired direction, it too fast compared to what I want. Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted March 21, 2014 Share Posted March 21, 2014 then use CurveAngle. I used it also for smooth turn rotation but there is maybe some kind of bad behavior (depends what you are doing) eg. if you have a line between 2 points (lol obvious) the entity will face B if A is startpoint. this is right and working well but if you have walls or a labyrinth the entity is facing the endpoint all the time by walking to trough the labyring (it looks like the entity is using wallhack ). So if your entity is moving into the labyrinth you have to create more points because your GoToPoint == LookAtPoint. you can also seperate both points and calculate the look to directions with the MoveDirectionAngle Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
YouGroove Posted March 21, 2014 Share Posted March 21, 2014 You could override each physic loop the rotation of character made by controller character, if you manage yourself rotation with SetRotation(). Once you called GotoPoint, apply SetRotation() Actually on Speed max and acceleration are parameters, would be great to have rotation speed. Quote Stop toying and make games 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.