UltraEd icon indicating copy to clipboard operation
UltraEd copied to clipboard

Rotation in script does not work

Open guighub opened this issue 3 years ago • 1 comments

Here's my code example:

void $Update(Actor *self)
{
    // Called every frame.
    self->rotationAxis.y += 0.2f;
}

I put the code on an actor and saved it, did everything to build and it will not rotate. Translating an object does work though.

guighub avatar Jul 04 '22 02:07 guighub

Hey! You actually need to increment the rotationAngle to get the actor to rotate. The rotationAxis is for setting which axis the rotation will occur on. The rotation needs some improvement like allowing to rotate in either local or world space but it's pretty functional for now.

deadcast2 avatar Jul 07 '22 02:07 deadcast2