Merhabalar, Unity ile araç süspansiyon sistemindeki karşılaştığım sorunlardan ve çözümlerinden bahsedeceğim.
Öncelikle Süspansiyon yapımı için Robert Hooke nin F = k.x denkleminden yararlanacağız. Başlarken muhakakkak modelin yönlerini doğru ayarlamamız gereklidir.
Unity sistemi içerisinde transform.forward – transform.right gibi transform elemanları bulunur. Bu elemanlar birer vektördür. Büyüklükleri 1 birimdir. Bu sebeple çarpmada yön dışında bir etkide bulunmazlar.

Yukarıda merkezde bulunan yön vektörleri ile ilgili bir gizmos oluşturdum örnek amaçlı. Aracın ilk 3D Meshi yüklediğimizdede bu rotasyonlara dikkat etmemiz gereklidir. Zira dikkat edilmemesi durumunda oluşacak fiziksel karışıklıklardan dolayı istediğimiz fiziksel hareketi alamayabilir.

Görsel ve scriptsel kullanılacak olan elemanların ayrı ayrı barınması gereklidir. Çünkü görsel oryantasyonların pozisyon ve rotasyon değerlerinin değişik olması bizim referans transform.forward veya transform.right değerlerimiz gibi karışıklara sebebiyet vermez.
Ancak scriptlerin kullanılacağı parent objelerinde Örneğin SuspensiyonFR objesi gibi bunun rotasyon ve scale değerleri olması gereken ilk değerleride olması gereklidir.


Yukarıda sağ ve sol süspansyionların posizyon, rotasyon ve scale değerlerini paylaştım. sadece konumsal olarak farklı olmalıdır. Burada bulunan rostasyon değişiklikleri olası fiziksel sorunlara yol açacaktır.



Araç ve süspansiyonların oryantasyonunu ayrı ayrı ayarladık ancak yönlerinin aynı olması gerektiğini unutmamak gereklidir. Aksi halde oyun onun visual olarak hangi yönelimde olduğunu anlayamacağından karışıklara sebebiyet verecektir.

Süspansiyon Y ekseninde başlangıç noktasını içerir. Aracın görüntüsel olarak tekerleği alt nesne olarak y ekseninde ayarlanabilir ancak süspansyion belli bir esneme değerine göre ayarlanacağından maximum sıkılma anı baz alınarak üst bölgeye yerleştirilmiştir.

Görüldüğü üzere tekerlek süspansiyon başlangıç noktasından 0,337 birim daha aşağıda bulunmaktadır.
DEVAMI GELECEK.
Webmentions
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
dapoxetine generic name
dapoxetine generic name
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
avanafil stendra tablet
avanafil stendra tablet
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
generic cialis amazon
generic cialis amazon
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
sildenafil moa phtn
sildenafil moa phtn
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
sildenafil price usa
sildenafil price usa
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
costco xenical
costco xenical
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
generic cialis goodrx
generic cialis goodrx
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
furosemide 20 mg tablet for dogs
furosemide 20 mg tablet for dogs
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
lasix furosemide tablets
lasix furosemide tablets
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
flagyl 500 mg tablet
flagyl 500 mg tablet
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
doxycycline for uti men
doxycycline for uti men
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
prescription antibiotics
prescription antibiotics
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
tetraciclina
tetraciclina
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
linezolid cost per pill
linezolid cost per pill
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
mobic for nerve pain
mobic for nerve pain
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
metoprolol succ er
metoprolol succ er
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
finasteride proscar
finasteride proscar
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
doxytet
doxytet
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
dapoxetine buy online
dapoxetine buy online
Warning: Attempt to read property "comment_date" on null in /home/mehmetgulh2/public_html/wp-includes/comment-template.php on line 618
hello world
hello world