• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 14:49
CEST 20:49
KST 03:49
  • 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
Esports World Cup 2025 - Brackets Revealed10Weekly Cups (July 7-13): Classic continues to roll4Team TLMC #5 - Submission extension3Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7
StarCraft 2
General
The GOAT ranking of GOAT rankings RSL Revival patreon money discussion thread Who will win EWC 2025? Weekly Cups (July 7-13): Classic continues to roll Esports World Cup 2025 - Brackets Revealed
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event RSL: Revival, a new crowdfunded tournament series $5,100+ SEL Season 2 Championship (SC: Evo) WardiTV Mondays Sparkling Tuna Cup - Weekly Open Tournament
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 (and Retracts) Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Starcraft in widescreen A cwal.gg Extension - Easily keep track of anyone
Tourneys
[Megathread] Daily Proleagues Cosmonarchy Pro Showmatches CSL Xiamen International Invitational [BSL20] Non-Korean Championship 4x BSL + 4x China
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread 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 Russo-Ukrainian War Thread Future of Porn Stop Killing Games - European Citizens Initiative Summer Games Done Quick 2025!
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 2024 - 2025 Football Thread NBA General Discussion 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: 734 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
WardiTV European League
16:00
Swiss Groups Day 4
Harstem vs HeRoMaRinELIVE!
WardiTV1046
TKL 307
IndyStarCraft 279
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 566
TKL 307
IndyStarCraft 279
UpATreeSC 156
BRAT_OK 82
MindelVK 35
StarCraft: Brood War
EffOrt 687
Rush 615
BeSt 354
firebathero 346
Larva 60
PianO 52
Movie 42
Aegong 26
JulyZerg 23
sas.Sziky 23
[ Show more ]
yabsab 15
sSak 8
SilentControl 5
Dota 2
qojqva3888
canceldota66
League of Legends
Grubby3649
Counter-Strike
pashabiceps1197
flusha300
Heroes of the Storm
Liquid`Hasu137
Other Games
FrodaN4790
Beastyqt722
ceh9685
mouzStarbuck167
oskar140
Skadoodle137
elazer114
C9.Mang084
ArmadaUGS82
Mew2King62
Trikslyr61
QueenE60
Organizations
Other Games
gamesdonequick3389
StarCraft 2
angryscii 9
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• davetesta23
• intothetv
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• IndyKCrew
• Kozan
StarCraft: Brood War
• 80smullet 18
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2615
League of Legends
• Nemesis2831
• Jankos1904
• TFBlade829
Other Games
• imaqtpie1592
• Shiphtur214
Upcoming Events
PiGosaur Monday
5h 11m
uThermal 2v2 Circuit
21h 11m
Replay Cast
1d 5h
The PondCast
1d 15h
WardiTV European League
1d 21h
Replay Cast
2 days
Epic.LAN
2 days
CranKy Ducklings
3 days
Epic.LAN
3 days
CSO Contender
3 days
[ Show More ]
BSL20 Non-Korean Champi…
3 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
4 days
Online Event
4 days
BSL20 Non-Korean Champi…
4 days
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Esports World Cup
6 days
ByuN vs Astrea
Lambo vs HeRoMaRinE
Clem vs TBD
Solar vs Zoun
SHIN vs Reynor
Maru vs TriGGeR
herO vs Lancer
Cure vs ShoWTimE
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
FISSURE Playground #1
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
ESL Pro League S22
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
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.