Форум города Днепр (Днепропетровска)
Форум города Днепр

Вернуться   Форум города Днепр (Днепропетровска) > КОМПЬЮТЕРЫ и программы > Программы и ОС

Программы и ОС Ищем программы, лекарства

Ответ
 
Опции темы Опции просмотра
Старый 17.06.2022, 13:04   #1
MichealJordan
Новичок
 
Регистрация: 17.06.2022
Сообщений: 1
Сказал(а) спасибо: 0
Поблагодарили 0 раз(а) в 0 сообщениях
Вес репутации: 0
MichealJordan на пути к лучшему
По умолчанию "rigidbody.addforce not working" Code Answer's

You're definitely familiar with the best coding language C# that developers use to develop their projects and they get all their queries like codeprozone.com/code/csharp/31197/rigidbody.addforce-not-working.html"rigidbody.addforce not working" answered properly. Developers are finding an appropriate answer about rigidbody.addforce not working related to the C# coding language. By visiting this online portal developers get answers concerning C# codes question like rigidbody.addforce not working. Enter your desired code related query in the search bar and get every piece of information about C# code related question on rigidbody.addforce not working.

rigidbody.addforce not working:

//Even though Unity says that transform.forward = Vector3(0, 0, 1) that is not the case

//This is the line that you want
gameObject.GetComponentOfType().AddForce(transform.forward * 200,ForceMode.Impulse);;

//This line will give you seemingly random values
gameObject.GetComponentOfType(). AddForce(new Vector3(0, 0, 200, ForceMode.Impulse);
MichealJordan вне форума   Ответить с цитированием
Ответ


Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Вкл.

Быстрый переход


Текущее время: 16:31. Часовой пояс GMT +3.


© 2010-2026 Форум міста Дніпро онлайн. All Rights reserved