• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:14
CEST 14:14
KST 21:14
  • 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 Tall12HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Weekly Cups (July 7-13): Classic continues to roll2Team TLMC #5 - Submission extension1Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7Weekly Cups (June 30 - July 6): Classic Doubles7
StarCraft 2
General
RSL Revival patreon money discussion thread Weekly Cups (July 7-13): Classic continues to roll Esports World Cup 2025 - Final Player Roster TL Team Map Contest #5: Presented by Monster Energy Team TLMC #5 - Submission extension
Tourneys
RSL: Revival, a new crowdfunded tournament series $5,100+ SEL Season 2 Championship (SC: Evo) WardiTV Mondays Sparkling Tuna Cup - Weekly Open Tournament FEL Cracov 2025 (July 27) - $8000 live event
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
External Content
Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome
Brood War
General
Flash Announces Hiatus From ASL BW General Discussion A cwal.gg Extension - Easily keep track of anyone [Guide] MyStarcraft [ASL19] Finals Recap: Standing Tall
Tourneys
[BSL20] Non-Korean Championship 4x BSL + 4x China [Megathread] Daily Proleagues 2025 ACS Season 2 Qualifier Small VOD Thread 2.0
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile CCLP - Command & Conquer League Project The PlayStation 5
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 The Accidental Video Game Porn Archive Russo-Ukrainian War Thread Porn and Stuff Summer Games Done Quick 2025!
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: 591 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
Wardi Open
11:00
#44
WardiTV776
OGKoka 721
CranKy Ducklings123
Rex109
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
OGKoka 721
Harstem 293
Creator 130
Rex 109
StarCraft: Brood War
BeSt 12853
Sea 3007
Mini 2226
Rush 1597
Zeus 1131
Larva 596
Stork 450
Leta 403
PianO 346
firebathero 302
[ Show more ]
EffOrt 176
Pusan 158
ToSsGirL 87
Mind 85
Barracks 33
Shine 32
Shinee 32
sSak 29
Sharp 29
JulyZerg 26
sorry 24
Movie 21
soO 20
Icarus 15
SilentControl 9
IntoTheRainbow 8
Bale 7
Terrorterran 4
Dota 2
qojqva2728
XcaliburYe551
League of Legends
Dendi691
Counter-Strike
shoxiejesuss983
x6flipin725
flusha409
Super Smash Bros
Mew2King130
Heroes of the Storm
Khaldor215
Other Games
singsing1940
B2W.Neo1160
crisheroes383
Fuzer 299
Pyrionflax223
mouzStarbuck215
Happy195
hiko193
SortOf188
Lowko162
ArmadaUGS64
QueenE19
Organizations
Other Games
gamesdonequick4957
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 11 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis2112
Upcoming Events
RotterdaM Event
3h 46m
Replay Cast
21h 46m
WardiTV European League
1d 3h
ShoWTimE vs sebesdes
Percival vs NightPhoenix
Shameless vs Nicoract
Krystianer vs Scarlett
ByuN vs uThermal
Harstem vs HeRoMaRinE
PiGosaur Monday
1d 11h
uThermal 2v2 Circuit
2 days
Replay Cast
2 days
The PondCast
2 days
Replay Cast
3 days
Epic.LAN
3 days
CranKy Ducklings
4 days
[ Show More ]
Epic.LAN
4 days
BSL20 Non-Korean Champi…
5 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
5 days
Online Event
6 days
BSL20 Non-Korean Champi…
6 days
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Liquipedia Results

Completed

2025 ACS Season 2: Qualifier
RSL Revival: Season 1
Murky Cup #2

Ongoing

JPL Season 2
BSL 2v2 Season 3
Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
Championship of Russia 2025
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 Last Chance 2025
CSLPRO Chat StarLAN 3
BSL Season 21
K-Championship
RSL Revival: Season 2
SEL Season 2 Championship
uThermal 2v2 Main Event
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.