Size: a a a

2021 January 30

Ги

Геральт из Ривии... in unity3d.ru
Physics.Raycast всегда срабатывает несколько раз?
источник

АП

Алексей Приказчиков... in unity3d.ru
С чего вдруг?
источник

АП

Алексей Приказчиков... in unity3d.ru
Один раз
источник

АП

Алексей Приказчиков... in unity3d.ru
https://docs.unity3d.com/ScriptReference/Physics.Raycast.html
Изменяет же параметр по ссылке
источник

A

Azizbek Xushnazarov in unity3d.ru
Guys what is the best way to controll character. Rigidbody AddForce or Character Controller component?
источник

ᅠᅠᅠᅠᅠᅠᅠEmil 🇦🇿✊... in unity3d.ru
I use Rigidbody
источник

CM

Call me Matthew in unity3d.ru
Azizbek Xushnazarov
Guys what is the best way to controll character. Rigidbody AddForce or Character Controller component?
Why would you Add force?
источник

CM

Call me Matthew in unity3d.ru
I usually use AddForce for some kind of projectiles or explosives
источник

CM

Call me Matthew in unity3d.ru
Azizbek Xushnazarov
Guys what is the best way to controll character. Rigidbody AddForce or Character Controller component?
Just transform.translate it
источник

CM

Call me Matthew in unity3d.ru
The only downside of this method is that it basically moves character by teleporting it every frame a little further in a direction you looking
источник

CM

Call me Matthew in unity3d.ru
So the downside is that you can’t measure the velocity of your character
источник

CM

Call me Matthew in unity3d.ru
But if you don’t need velocity measure of any kinds, you’ll be pretty much fine using transform.translate
источник

T_

Trell _ in unity3d.ru
Call me Matthew
Just transform.translate it
Treansform is a bad way to move physical objects. You will have problems with collisions
источник

CM

Call me Matthew in unity3d.ru
This is actually the most inexpensive way to move a character
источник

CM

Call me Matthew in unity3d.ru
But you can also use rb.velocity
источник

CM

Call me Matthew in unity3d.ru
Is also allows you to measure the character’s speed by using rb.velocity.magnitude
источник

CM

Call me Matthew in unity3d.ru
here's how I approach it when it comes to top-down/third person controls
источник

T_

Trell _ in unity3d.ru
Call me Matthew
This is actually the most inexpensive way to move a character
Yes, but it just teleports objects and ignores colliders what looks preety bad. If your gameObject is physical you should use a rigibody to move
источник

CM

Call me Matthew in unity3d.ru
that's what I'm saying
источник

CM

Call me Matthew in unity3d.ru
In some cases it might be good, in some not
источник