#Long March

1 messages · Page 1 of 1 (latest)

velvet oak
#

Here

undone anvil
#

good

peak torrent
#

what

#

ok

undone anvil
#

ok
you know what the magnitued of a vector / vector3 is?

peak torrent
undone anvil
#

the magnitued of a Vector3 is the length of all the components of the vector3 combined

#

if you want to know how fast a object is you mostly dont care about what direction it is going
you just want to know the speed

#

the magnitude of the velocity vector is that speed you are after

#

that you can now compare to your float value to see if the speed meeds your condititon

peak torrent
#

where do I put your magnitude

#

cuz tihs is pretty chat I don't udnerstand cuz apprently the problem come from the if statement

undone anvil
#

if (aircraft.isGrounded && speed.magnitude >= 2f) {

peak torrent
#

...

#

ooh just let me try cuz my brain cry

#

you won

#

I understand

#

now

undone anvil
#

glad for you 🙂

peak torrent
#

you can close this channel?

undone anvil