• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 17:30
CEST 23:30
KST 06:30
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6Code S RO8 Preview: herO, Zoun, Bunny, Classic7
Community News
Weekly Cups (June 23-29): Reynor in world title form?6FEL Cracov 2025 (July 27) - $8000 live event13Esports World Cup 2025 - Final Player Roster14Weekly Cups (June 16-22): Clem strikes back1Weekly Cups (June 9-15): herO doubles on GSL week4
StarCraft 2
General
The SCII GOAT: A statistical Evaluation Weekly Cups (June 23-29): Reynor in world title form? How does the number of casters affect your enjoyment of esports? Esports World Cup 2025 - Final Player Roster HomeStory Cup 27 - Info & Preview
Tourneys
HomeStory Cup 27 (June 27-29) WardiTV Mondays SOOPer7s Showmatches 2025 FEL Cracov 2025 (July 27) - $8000 live event $200 Biweekly - StarCraft Evolution League #1
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers [G] Darkgrid Layout
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
StarCraft & BroodWar Campaign Speedrun Quest ASL20 Preliminary Maps BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ Unit and Spell Similarities
Tourneys
The Casual Games of the Week Thread [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET [Megathread] Daily Proleagues [BSL20] ProLeague LB Final - Saturday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do. [G] How to get started on ladder as a new Z player
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Trading/Investing Thread Stop Killing Games - European Citizens Initiative Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread Formula 1 Discussion NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 658 users

Looking for a Unity mentor

Blogs > Qzy
Post a Reply
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2011-06-13 07:41:19
June 13 2011 07:40 GMT
#1
Hi!

I'm trying out the Unity engine (www.unity3d.com) to test out some small ideas - but I keep running into simple problems. I need a helping hand when it happens . Is anyone experienced in Unity and ready to take a newbie under his wings?

I'm pretty experienced Java, so the programming part shouldn't be the biggest problem.

-Qzy.

TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
ChronoCat
Profile Blog Joined October 2010
266 Posts
June 13 2011 07:57 GMT
#2
What aspect of Unity is giving you problems? And what language are you writing scripts in?
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2011-06-13 15:13:11
June 13 2011 15:12 GMT
#3
I think I'll write it in javascript?

Right now I have problems with the "LookAt" method:

http://www.jonnielsen.net/WebPlayer.html

The turret should aim at the worm, not go crazy .

The script is super simple:

var LookAtTarget:Transform;
function Update () {
transform.LookAt(LookAtTarget);
}
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
ChronoCat
Profile Blog Joined October 2010
266 Posts
Last Edited: 2011-06-13 18:05:39
June 13 2011 18:04 GMT
#4
Okay first of all I'm by no means an expert at Unity, nor am I a good programmer. But I've had a bit of experience using Unity before so I'll just post what I know...

I've never actually used the LookAt function prior to this, but I just tried it out real quick in Unity and I managed to get a similar looking turret to aim at a player-controlled cube using the exact same script you posted.

So I doubt it's a problem with that script itself. I'm not sure how your worm works, but I'm guessing it's from a Unity tutorial of some sort (since it looks familiar to me)? My guess is that it has something to do with the worm itself because I'm not sure how it's working or your turret's transforms aren't right or something. What are you setting the LookAtTarget variable to? Perhaps the turret isn't pointing at what it should be? What puzzles me the most is that the turret is translating as well, even though it should just be rotating... Like it's got the wrong center of rotation or something.

I guess the only point that I'm able to put forth right now is to double check and make sure everything's been set correctly, although I'm sure you've done that already lol


XDawn
Profile Blog Joined February 2004
Canada4040 Posts
June 13 2011 18:23 GMT
#5
Awesome, I'm soon going to learn this in my classes too. Not to hijack your thread but is there a place where you can learn for people starting out with this program? Good Websites? Pre-req's I should have?
Use it or lose it
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
June 13 2011 18:50 GMT
#6
I solved the problem . The turret were placed at bad positions inside an empty game object - so it did move around, but around an invisible point in space.
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
June 13 2011 18:51 GMT
#7
On June 14 2011 03:23 XDawn wrote:
Awesome, I'm soon going to learn this in my classes too. Not to hijack your thread but is there a place where you can learn for people starting out with this program? Good Websites? Pre-req's I should have?


Try youtube "Tornado Twins".. They got some tutorials up. . If you want to share some ideas, you can get my msn or skype.
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
June 13 2011 18:53 GMT
#8
The webplayer now shows the new game With turret looking at worm - and worm able to shoot by pressing space.
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
ChronoCat
Profile Blog Joined October 2010
266 Posts
Last Edited: 2011-06-13 18:56:09
June 13 2011 18:55 GMT
#9
On June 14 2011 03:23 XDawn wrote:
Awesome, I'm soon going to learn this in my classes too. Not to hijack your thread but is there a place where you can learn for people starting out with this program? Good Websites? Pre-req's I should have?


Unity's site has a bunch of useful tutorials, although some are a little bit too advanced, esp. for beginners. This site here was really helpful to me when I first started:

http://www.unity3dstudent.com/

Has a bunch of tutorial videos (under "Modules") that teach the basic stuff! Probably'll take you at most a couple of hours to go through all of them, and you'll definitely get a good idea of Unity once you do.

On June 14 2011 03:50 Qzy wrote:
I solved the problem . The turret were placed at bad positions inside an empty game object - so it did move around, but around an invisible point in space.


I figured just as much, the center of rotation seemed out of place. But I didn't bring up the possibility of an empty game object, simply because I didn't think a simple sphere + cylinder combination of a turret would have any reason to be in an empty game object in the first place. Good on ya then!
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2011-06-13 20:01:34
June 13 2011 19:26 GMT
#10
On June 14 2011 03:23 XDawn wrote:
I figured just as much, the center of rotation seemed out of place. But I didn't bring up the possibility of an empty game object, simply because I didn't think a simple sphere + cylinder combination of a turret would have any reason to be in an empty game object in the first place. Good on ya then!


The reason for putting it in an empty object, is to only have 1 script (LookAt) on one object, in stead of two . How much have you been playing around with unity? I would love to poke you with a stick when I run into more problems .
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
ChronoCat
Profile Blog Joined October 2010
266 Posts
June 14 2011 02:32 GMT
#11
On June 14 2011 04:26 Qzy wrote:
Show nested quote +
On June 14 2011 03:23 XDawn wrote:
I figured just as much, the center of rotation seemed out of place. But I didn't bring up the possibility of an empty game object, simply because I didn't think a simple sphere + cylinder combination of a turret would have any reason to be in an empty game object in the first place. Good on ya then!


The reason for putting it in an empty object, is to only have 1 script (LookAt) on one object, in stead of two . How much have you been playing around with unity? I would love to poke you with a stick when I run into more problems .


I don't think you'd need to use an empty game object for that. Supposing your "turret" consists of a sphere object and cylinder object like I think it does, you'd just need to attach the script to the sphere, and then parent the cylinder to the sphere by dragging the cylinder object in the project hierarchy into the sphere object. The cylinder should follow the sphere's transformations exactly as long as you positioned it correctly I think.

I've only used Unity (using Javascript) for about half a year for a couple of uni projects that weren't too complex, so if you run into a simple problem, I'd probably be able to help. If it's a bit more involved, though... No guarantees lol. I'm not the best programmer out there and the Unity projects I worked on were pretty simple and took a pretty-brute force approach if I might add. So I'm probably still unaware of how a lot of Unity's functions work.

Regardless, Unity's a pretty fun tool to work with, and I wish you GLHF!

Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
June 14 2011 16:25 GMT
#12
Thanks and thanks for the offer .
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
XDawn
Profile Blog Joined February 2004
Canada4040 Posts
June 15 2011 04:16 GMT
#13
Thanks - I'll PM you for MSN or Skype sooner or later
Hope all worked out for you too
Use it or lose it
Disregard
Profile Blog Joined March 2007
China10252 Posts
Last Edited: 2011-06-15 04:23:06
June 15 2011 04:21 GMT
#14
Hmmm... Think I can use this for architecture(Uni major) modeling and whatnot. I have some experience in Java, not an expert but I think it shouldnt be too difficult.

Any input?

edit: Its only for fun, something to represent productivity until my summer work is over and class resumes again.
"If I had to take a drug in order to be free, I'm screwed. Freedom exists in the mind, otherwise it doesn't exist."
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2011-06-15 15:09:43
June 15 2011 15:09 GMT
#15
Yeah I'm using it show off artificial intelligence projects.

Currently implementing some of the latest AI .
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
Please log in or register to reply.
Live Events Refresh
Monday Night Weeklies
16:00
#20
SteadfastSC792
FunKaTv 419
ZombieGrub298
BRAT_OK 170
EnkiAlexander 66
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 792
FunKaTv 419
ZombieGrub298
BRAT_OK 170
Livibee 80
StarCraft: Brood War
Calm 2553
Rain 1386
Mini 509
firebathero 108
EffOrt 92
Stormgate
NightEnD2
Dota 2
NeuroSwarm61
League of Legends
Grubby4298
JimRising 486
Counter-Strike
summit1g3141
sgares105
Super Smash Bros
PPMD88
Heroes of the Storm
Liquid`Hasu684
Other Games
FrodaN2169
fl0m1186
mouzStarbuck307
ToD255
Pyrionflax200
Sick72
Mew2King63
Organizations
Other Games
BasetradeTV19
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• kabyraGe 238
• musti20045 43
• davetesta22
• Kozan
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• Azhi_Dahaki29
• FirePhoenix4
• Pr0nogo 4
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• masondota2774
Other Games
• imaqtpie1429
• Shiphtur316
Upcoming Events
Replay Cast
2h 30m
Wardi Open
13h 30m
PiGosaur Monday
1d 2h
The PondCast
1d 12h
Replay Cast
2 days
RSL Revival
2 days
WardiTV European League
2 days
Replay Cast
3 days
RSL Revival
3 days
WardiTV European League
3 days
[ Show More ]
FEL
3 days
Korean StarCraft League
4 days
CranKy Ducklings
4 days
RSL Revival
4 days
FEL
4 days
Sparkling Tuna Cup
5 days
RSL Revival
5 days
FEL
5 days
BSL: ProLeague
5 days
Dewalt vs Bonyth
Liquipedia Results
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.