Skocz do zawartości
View in the app

A better way to browse. Learn more.

Max3D.pl

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Napisano

Witam mam model samolotu, chciałbym aby ten model poruszał po ścieżce. Jak podpiąć model pod Nurbsa ? Tak aby w animacji poruszał się za ścieżką. Mógł by mi ktoś pomóc z kodem. Z góry dziękuje :)

 


terrainGeometry = $ground
plane = $plane
nurbs=$nurb1

disableSceneRedraw() 
with animate on
(
for currentTime = animationRange.start to animationRange.end do
(
	slidertime = currentTime
)
)	
enableSceneRedraw()

  • Odpowiedzi 1
  • Wyświetleń 1,6k
  • Created
  • Ostatniej odpowiedzi

Top Posters In This Topic

Napisano

Próbowałeś

Animation -> Constraints - Patch Coinstrant (skryptem też można nadać kontroler Patch Coinstrant)

 

możesz przypiąć helpera do splinea

 

a w pętli zrobić

 

plane.pos = $hlp_przypiety_coinstrainem.pos
plane.rotation = $hlp_przypiety_coinstrainem.rotation

LUB : 

plane.transform = $hlp_przypiety_coinstrainem.transform 


 

 

jeśli robisz to dla więcej niż jednego samolotu (np 100 samolotów po 40 splineach), skryptowanie tego ma sens

 

jeśli masz jeden samolot i jednego nurbsa to polecał bym zrobić constraina zamiast skryptować.

 

Jak możesz to napisz więcej jaką masz sytuację i dlaczego chcesz to robić skryptem

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Powiadomienie o plikach cookie

Wykorzystujemy cookies. Przeczytaj więcej Polityka prywatności

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.