Ambiera ForumDiscussions, Help and Support. |
|
[ 1 2 ] Page 1 of 2 |
|
|||||
|
Hi folks, I'm working on a mechanical system project that requires relative 'in-world' timing to be consistent. For that reason I need to understand what units of measurement CC is using for Time and the Rotation Behaviour. Can anyone tell me the following: We set Rotation as an increment: what is the increment set in? Degrees? Radians? Something else? The set increment is applied to the object at intervals: what is the interval? Seconds? Milliseconds? Frames? Many thanks for your help! |
||||
|
It uses degrees and milliseconds. |
||||
|
Rotation is set in Euler degrees. If you're using the built-in "Rotate" behavior, value of 0.01 gives you 1 degree/second. It's also fps independent. |
||||
|
Euler degrees? ![]() |
||||
|
he wanted to show off so much. it's euler angle, which is not relevant to the question at all. it can be expressed in degrees or radians. someone needs to go back to high school Guest wrote: Euler degrees? ![]() ![]() ![]() ![]() |
||||
|
You apparently got the idea. Don't be that guy. |
||||
|
Don't fumble the ball next time, champ. ![]() |
||||
|
@Guest 2 Euler died before modern computers existed... ![]() |
||||
|
Guest, maybe you know the following: if I use rotation behavior, the rotation value of the object keeps growing. How can I limit it so that it stays between 0 and 360 degrees? |
||||
|
The solution first starts with understanding the problem. What are you trying to do? |
||||
|
I have a model that rotates around the y axis all the time using rotate behavior. the longer I work in the editor, the higher the y value gets. so first it's 100, then 400, then 1000, and so on. how can I make it always stay between 0 and 360? |
||||
|
You can't because that rotation behavior you speak of is silly. I hate to be harsh, but why would anyone have something rotate in the editor before the start of the game? I am sure Niko has a reason, which may or may not be legit, but I cannot fathom why that would be. The reason I asked you about the problem is because I am still not sure what you are trying to do. You need to explain the particulars of your situation because I can fathom why you would need a rotation that doesn't account for the game starting, but can you? Tell me what you are trying to do. Use your words. Pretend I am absolutely silly. I won't take offense. ![]() |
||||
|
I added rotation to planet1 and now the y rotation keeps growing. I can't do anything to reset it to 0 except set it to 0 manually. I want it to be between 0 and 360 in the editor, or at least have the planet rotate only in the game and not in the editor. |
||||
|
Dude, the problem is you are relying on the editor. The only thing you can do is learn to code, but the problem with CC is you learn to code in JS when most modern game engines are beyond that. You have one option: learn to code. If you want my help, then I will make a custom behavior for you--but I cannot say this is normal or helpful to you. You shouldn't have to do this as a regular user. Just tell me if you want to proceed with this or let's make Mario in another engine and have fun. Frankly, I am sick of this engine. |
||||
|
Yeah, let's do it! What engine? I know python a little, want to use pygame? how can I dm you? |
[ 1 2 ] Page 1 of 2 |
|