A problem with scale transforming

hello. i recently tried creating a game on unity by online lessons but i ran at a problem i the code i was experimenting with transform when i saw two errors. Cannot implicitly convert type Vector3 to Quaternion, and another was the complete opposite. both errors showed that the mistake was in the same line. does someone know how to fix it? i am at version 2022.3.41f1

Some help to fix “Cannot implicitly convert type ‘Xxxxx’ into ‘Yyyyy’:”

http://plbm.com/?p=263

Like / hate doesn’t enter into it. This is software engineering.

In one case you have a square hole and in you’re trying to fit a round peg into it.

In the other case it’s the reverse.

Did you even read the content in the link? It certainly sounds like you didn’t. Go back and read it, particularly the part that starts with

“To reason about what you are doing, you need to understand two things:”

When you’re ready to understand those two things (they’re not optional!), you’ll find the error is simple to fix.

Here’s the link again:

http://plbm.com/?p=263

1 Like