#10 How to make a 3d game [Unity3d tutorial]

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
113,714
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 21, 2009

This is part 10 of the series on how to make a video game from scratch.
In this part we're continuing getting our turret to work, using the Unity3d engine.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 4 dislikes

Link to this comment:

Share to:

Top Comments

  • i think i just heared TomatoTwins at the first??? XD

  • hey I got the right script for you:

    var LookAtTarget : Transform;

    var damp = 6.0;

    function Update () { if(LookAtTarget) {  var rotate = Quaternion.LookRotation(LookAt­Target.position - transform.position); transform.rotation = Quaternion.Slerp(transform.rot­ation, rotate, Time.deltaTime * damp); } //transform.LoolAt(LookAtTarge­t); }

see all

All Comments (317)

Sign In or Sign Up now to post a comment!
  • @wtf0productions It is free

  • @wtf0productions Unity is free. You can buy a Pro version that has some perks in console publishing, but the indie one is totally free.

  • @mariovsluigi4094 too bad the software is like 500 dollars.

  • holy sht i never seen dis game maker thing awesome now i am gonna download dis and make the character i wuz tryin 2 animate :O

  • I am having a hard time with does scrypts

  • could you right the movement code in the coments so i can copy it?

  • @marshmallowjjang i red your comment before watching and tought it srsly he said tomatotwins lol

  • @Greenday96messi i guess someone answered u already, but: insert semicolon ; at teh end ^^

  • My Damp doesn't work I change Damp from 6 to 1 and its still going same speed!! Plz can somebody help!!!

  • @THExRISExOFxZOMBIES I cannot say for sure, but it sounds like a pivot point issue. This is not a problem with the code, but with the model.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more