Bitch, be cool!
Ramblings of
Alex Lovett
RSS
Twitter
Tumblr
Youtube
LinkedIn

Navigation:

Up a Level - Experiments - Store

Documents:

Unity5 - Reality_2.0 - Math_Art - Lilly - Drawing - GameDesign - Inspiration - XFactor - Valideus - Food - WheelReview - GKN - Lumen - WishList - RoundTree - Painting_with_Light - House - Website - Fridge
Tags: - Programming - Games - Unity - Shadowood
Show comments

Every little thing in making a game is a hurdle, or at least a dozen google searches then a hurdle

Today wrote my own InputManager for multi touch, made it way smarter than I should have, it will look for a special component on the object you touch ( which it find by doing ray cast from the camera ) if none was found it can look at the object parent, and parents parent etc till it finds one, it can also contact ALL parents if they have a listener on them, simple really. I can also have it auto add a component to the touched object that caches all this so it is fast without having to perform lookups every time.. like a boss

So code to have good component orientated design to handle touching the iPad screen:



But that's a bit misleading as that contains code to auto add components and handle duplicate objects, singletons and such

:-)



But you get the idea, every little tiny thing, involves 100 other tiny things and so on

Lets not even think about how the ray cast to find the touched object itself is leaning on 1000's of lines of physic engine code and scene caches to aid in speed

Speaking of ridiculous code, I have been slowly write examples for various c# concepts and functionality...

All of this, and none of it actually visibly does a damn thing. In fact at his point all I have done in Unity is make a box move, but I decided to learn the language first so learn it I shall *grumble*



Show comments for 'MultiTouch'
You have reached the end of this page - But there's more! Click Older for more
Subscribe to my News Feed.. or screw you then!
Dewey: Like Pastor Roy said, how God's so much bigger and wiser than us. And trying to see what he's thinking would be like an ant trying to see what I'm thinking. Teacher: Yes, exactly. But we can trust in his wisdom and we can have faith that he is watching over us. Dewey: Like me with the anthill in my backyard. I spent days watching the ants, trying to figure out which ones were good and which ones were bad. But they all just look like ants. So I started smiting all of them. I was smiting them with the garden hose, and with lighter fluid, and with the lawnmower. And to be perfectly honest, I think I went a little crazy with the shovel. Those ants could have been praying to me all day; I wouldn't have heard 'em. There was nothing they could do about it. Really, It's the same with us. There's nothing we can do about anything, either. So why worry about it? Hey, this is making me feel better. I guess all we can do is live our lives with as much kindness and decency as possible and try not to dwell on God standing over us with that giant shovel. Bye!
Copyright © 2006 - 2024 - Alex Lovett
Site and content designed, built and massaged by
Alex Lovett
( HD6 / HeliosDoubleSix )
contact me by email:
Page Rendered in: 0.054 seconds, like a boss