#Rotating Vectors

1 messages ยท Page 1 of 1 (latest)

wise heart
#

t

jolly knot
#

thx

#

well blue is indeed -1 of red
but it doesn't point onto the front part ( dont know the name rn ) of the ship

wise heart
#

seems like the particles are offset a bit, ie at corner of block instead of cntre

#

cant tell from the pic

jolly knot
#

imma try drawing currentLocation.getDirection.Y + yaw

wise heart
#

oh wait

#

so it points correctly when ur rotated a multiple of 90 degrees

jolly knot
wise heart
#

but not otherwise

wise heart
#

did it work for all multiples of 90 like 90 or 270 or just 0 and 180

jolly knot
#

oh looks like it works only for 0

wise heart
#

ok

wise heart
#

i think yaw is in degrees

#

and sin and cos uses radians

#

0 works cuz 0 degrees is 0 radians

jolly knot
#

so I should try converting it

wise heart
#

ye

jolly knot
wise heart
jolly knot
#

yaw = Math.toRadians(yaw);
fixed it

wise heart
#

ye

wise heart
wise heart
jolly knot
#

blue line
hard to see but goes straight towards the "nose"

wise heart
#

yep i see

#

how do u plan on dealing with holes?

jolly knot
#

good idea ๐Ÿ˜„

#

no clue

#

prob gonna get block next to it
and set it to the hole

#

or have 2 variants of schemes
1 for 90 degrees
and 1 for 45

wise heart
#

or 3

#

0,30,45

#

actually why not build a 0 and a 15

jolly knot
#

yep
but even just moving those ships was a big pain in the ass

wise heart
#

wait nvm

#

are players gonna be in em?

jolly knot
#

yep

wise heart
#

ah

jolly knot
#

thx tho
u even fixed my 2nd problem
which was ships weren't moving in the right direction

#

wanna see it in action?

wise heart
#

yepls

jolly knot
#

gimme minute

wise heart
#

sure

jolly knot
#

oh again thx
found out a bug in that

wise heart
#

processing

jolly knot
#

SD processing

#

after it processes itself
you will be able to see that the ship can't rotate past 90degrees

#

ok it processed

wise heart
#

can it also turn 90 degrees the other way?

jolly knot
#

thats the bug I found thanks to u

#

at the beggining it couldnt go right because it was at 90 degrees

#

oh no
im just stupid

#

nvm ๐Ÿ˜„

wise heart
#

so uhhh

#

what is it?

jolly knot
#

I have made Helm ( Wheel) which converts the rotation to Stemp ( that little thingy in the water )
and the stemp should give back a rotation to the ship

but I was using helm rotation for the rotation

#

soo thats why prob

#

oh it even tho stopped at 90 degrees

wise heart
#

so it doenst work?

jolly knot
#

nah

#

I have to increase stemp return value every ship update
therefore it doesn't stay at same rotation ( ship ) but rotates continuously

wise heart
#

i just read what you wrote and still idk if it works or not ๐Ÿ˜‚

jolly knot
#

nah it doesnt rn

wise heart
#

what's the issue?

jolly knot
#

u know how old ships work?

wise heart
#

yes

#

i play sea of theives so i'm assuming those are accurate enf

jolly knot
#

well if you start rotating to the right
you need to rotate the Stemp to the left

Thats what this class is doing
But it sofar just made it -1*
therefore it staid at same rotation

jolly knot
wise heart
#

nice

wise heart
#

yes and no what do you mean it made it to -1 therefore it stays at that

jolly knot
#

my explanation skills suck ๐Ÿ˜„

#

lemme think of way to explain that

wise heart
#

idek what -1 is

jolly knot
#

-1*

#

it rotates + into - and - into +

#

basic math

#

could we DM?

wise heart
#

sure