Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
have this code: /* Info It rotates the object immediately, I need it to rotate smoothly, animatedly, please help me to implement |
||||
|
hi there, I just updated the action with the smooth rotation (animation) feature and a few more options like stopping the rotation towards the target with a variable and an option to make the object continuously rotate towards the target or rotate only once. The updated action will be uploaded to the website https://neophyte.cf in a few minutes. The variable that can be used to stop the rotation is player.rotatetowardstarget here the player is the name of the scene node that is rotating towards a target node, to stop the rotation all you need to do is to set this variable to "false" and that's it. Hope you like it. |
||||
|
It is now available to download from the website. https://neophyte.cf/ccb_action_r... |
||||
|
thank you very much |
||||
|
But if I want to set this rotation to the character, then my character will scroll once more before looking towards the object or camera, and tell me an example of how to use a variable to stop the rotation |
||||
|
Sorry, I didn't understand what does your character do? In order to stop the rotation. Just attach an action set a variable wherever you want the player to stop, like on proximity or on keypress simply set a variable. suppose your player node name is Vazahat then you need to set the variable name to Vazahat.rotatetowardstargetand set its value to false so now it will stop the player with Vazahat name from rotating towards the target. |
||||
|
These plugins are great just_in_case. I'll use them in my game and make a "buy me a coffee" donation next time I get paid. The "look at target" is one I've used regularly. Thank you. If you're interested in the idea... I could make a regular donation for you to make a simple plugin every month and release it to the Coppercube community and your Neophytes site. We could get ideas for plugin requests from the forum and discord server? |
||||
|
Thanks @veganpete, I like the idea, but at the same time I am also afraid what If I will be not able to deliver extensions and plugins as per the requirements. I will be posting more stuff and working on improving the engine, If you want you can support me. but I am not sure, if I will be able to post things with respect to a time period. How about you can support me, when I release a plugin or extension and if you think that extension is helpful and useful to you. That way, you can still support me and it won't feel like you are sending coffees for nothing. Cheers |
||||
|
Sure, no problem - didn't want to put you under pressure. I'll make a coffee donation to you when I'm paid next. |
||||
|
Hmmmmm, do these forum'istas bother you ? Vazahat.rotatetowardstarget = false; |
|