Jump to content

Rotate: Difference between revisions

1,115 bytes added ,  16 May 2024
Created page with "Rotates vector by a rotation. File:Rotate.png == Example == You can move a block to the direction that it's facing. Since the arrow is facing up by default, the velocity of the arrow should be upwards (0, 0, 0.1). To get the velocity of the block if it's not facing up, we can rotate the velocity (0, 0, 0.1) by the block's rotation. To move the block, we just add the block's position and the velocity and set that to the block's new position. File:Screenshot_202..."
(Created page with "Rotates vector by a rotation. File:Rotate.png == Example == You can move a block to the direction that it's facing. Since the arrow is facing up by default, the velocity of the arrow should be upwards (0, 0, 0.1). To get the velocity of the block if it's not facing up, we can rotate the velocity (0, 0, 0.1) by the block's rotation. To move the block, we just add the block's position and the velocity and set that to the block's new position. File:Screenshot_202...")
(No difference)