Cov txheej txheem:

Yuav ua li cas koj ntxiv thawj tus neeg tswj hwm hauv kev sib koom ua ke?
Yuav ua li cas koj ntxiv thawj tus neeg tswj hwm hauv kev sib koom ua ke?

Video: Yuav ua li cas koj ntxiv thawj tus neeg tswj hwm hauv kev sib koom ua ke?

Video: Yuav ua li cas koj ntxiv thawj tus neeg tswj hwm hauv kev sib koom ua ke?
Video: YUAV COJ LI CAS TU NEEG KOJ HLUB THIAJ NCO KOJ 2024, Kaum ib hlis
Anonim

Mus rau Assets> Ntshuam Pob> Cim Tus tswj . Tom qab ntawd import tag nrho los yog xaiv yam koj xav tau. Tom qab nws imported, kos rau hauv qhov project vaj huam sib luag, koj yuav tsum pom ib daim ntawv teev npe hu ua tus qauv ntsuas. Qhib nws, luag lub thawj tus neeg tswj rau koj qhov chaw.

Ib yam li ntawd, koj yuav ua li cas ntxiv tus neeg thib peb tus tswj hauv kev sib koom ua ke?

Kev qhia: Yuav ua li cas teeb tsa 3rd / peb tus neeg tswj hwm hauv Unity game engine

  1. Kauj ruam 2: Txoj nyem rau ntawm qhov project vaj huam sib luag rau > Ntshuam Pob > Cim.
  2. Kauj ruam 3: Ntshuam koj tus cwj pwm.
  3. Kauj ruam 4: Tsim 3D khoom dav hlau.
  4. Kauj Ruam 5: Teem lub dav hlau txoj hauj lwm rau 0, 0, 0 ntawm Tus Kws Tshuaj.
  5. Kauj ruam 6: Luag prefab 'ThirdPersonController' mus rau qhov chaw.

yog kinematic hauv kev sib sau? Thaum lub Rigidbody cim yog Kinematic, nws yuav tsis cuam tshuam los ntawm kev sib tsoo, quab yuam, lossis lwm qhov ntawm lub cev. Kinematic Rigidbodies yuav cuam tshuam rau lwm yam khoom, tab sis lawv tus kheej yuav tsis cuam tshuam los ntawm physics.

Tom qab ntawd, ib tug kuj yuav nug, dab tsi yog tus cwj pwm tswj?

Cov Tus cwj pwm tswj yog ib feem uas koj tuaj yeem ntxiv rau koj neeg uas ua ntawv . Nws txoj haujlwm yog txav cov neeg uas ua ntawv raws li ib puag ncig (cov colliders). Nws tsis teb los yog siv physics nyob rau hauv ib txoj kev. Yeej, koj yuav txav koj neeg uas ua ntawv zoo li koj yuav ua nrog Transform, tab sis koj tsis tuaj yeem hla kev sib tsoo.

Koj ua li cas hauv kev sib koom ua ke?

Tsim kev ua si hauv Unity yog txheej txheem ncaj nraim:

  1. Nqa koj cov khoom muaj nqis (artwork, suab thiab lwm yam). Siv lub khw muag khoom.
  2. Sau code hauv C#, JavaScript/UnityScript, lossis Boo, los tswj koj cov khoom, scenes, thiab siv cov kev ua si logic.
  3. Test hauv Unity. Export rau lub platform.
  4. Test ntawm lub platform ntawd. Muab tso rau.

Pom zoo: