• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 06:09
CEST 12:09
KST 19:09
  • 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
RSL Season 1 - Final Week6[ASL19] Finals Recap: Standing Tall11HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7Weekly Cups (June 30 - July 6): Classic Doubles7[BSL20] Non-Korean Championship 4x BSL + 4x China10Flash Announces Hiatus From ASL78
StarCraft 2
General
RSL Revival patreon money discussion thread The GOAT ranking of GOAT rankings Weekly Cups (June 30 - July 6): Classic Doubles Server Blocker RSL Season 1 - Final Week
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL: Revival, a new crowdfunded tournament series FEL Cracov 2025 (July 27) - $8000 live event $5,100+ SEL Season 2 Championship (SC: Evo) $25,000 Streamerzone StarCraft Pro Series announced
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
External Content
Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Flash Announces Hiatus From ASL [ASL19] Finals Recap: Standing Tall BW General Discussion A cwal.gg Extension - Easily keep track of anyone
Tourneys
[Megathread] Daily Proleagues 2025 ACS Season 2 Qualifier Small VOD Thread 2.0 Last Minute Live-Report Thread Resource!
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile CCLP - Command & Conquer League Project The PlayStation 5 Nintendo Switch Thread
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
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine The Accidental Video Game Porn Archive Stop Killing Games - European Citizens Initiative
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread [\m/] Heavy Metal Thread
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
Men Take Risks, Women Win Ga…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 776 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
RSL Revival
10:00
Season 1: Playoffs FINALS
Classic vs Clem
Tasteless3964
Crank 772
Rex64
IndyStarCraft 37
3DClanTV 32
IntoTheiNu 14
LiquipediaDiscussion
Sparkling Tuna Cup
10:00
Weekly #97
CranKy Ducklings34
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Tasteless 3964
Crank 772
Rex 64
IndyStarCraft 37
MindelVK 1
StarCraft: Brood War
Horang2 21367
Jaedong 918
Larva 628
firebathero 489
Pusan 371
PianO 341
BeSt 261
Leta 161
EffOrt 156
Sharp 115
[ Show more ]
Shinee 96
ToSsGirL 73
NaDa 30
Barracks 25
Last 15
GoRush 11
Hm[arnc] 8
yabsab 5
SilentControl 5
HiyA 4
Dota 2
XaKoH 470
XcaliburYe346
League of Legends
JimRising 521
Counter-Strike
Stewie2K523
x6flipin2
Heroes of the Storm
Khaldor290
Other Games
tarik_tv13194
gofns9687
shahzam413
Happy364
crisheroes274
DeMusliM190
SortOf160
Organizations
StarCraft 2
ComeBackTV 561
StarCraft: Brood War
lovetv 5
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• Berry_CruncH347
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2111
Upcoming Events
FEL
4h 51m
Elazer vs Spirit
Gerald vs MaNa
BSL20 Non-Korean Champi…
7h 51m
Bonyth vs Dewalt
QiaoGege vs Dewalt
Hawk vs Bonyth
Sziky vs Fengzi
Mihu vs Zhanhun
QiaoGege vs Zhanhun
Fengzi vs Mihu
Wardi Open
1d
Replay Cast
1d 23h
WardiTV European League
2 days
PiGosaur Monday
2 days
uThermal 2v2 Circuit
3 days
Replay Cast
3 days
The PondCast
3 days
Replay Cast
4 days
[ Show More ]
Epic.LAN
5 days
CranKy Ducklings
5 days
Epic.LAN
6 days
BSL20 Non-Korean Champi…
6 days
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

KCM Race Survival 2025 Season 2
HSC XXVII
NC Random Cup

Ongoing

JPL Season 2
BSL 2v2 Season 3
Acropolis #3
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
2025 ACS Season 2: Qualifier
BSL20 Non-Korean Championship
CSLPRO Last Chance 2025
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters

Upcoming

CSL Xiamen Invitational
CSL Xiamen Invitational: ShowMatche
2025 ACS Season 2
CSLPRO Chat StarLAN 3
BSL Season 21
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
Underdog Cup #2
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.