Hey !

I haven’t written a post in over 2 months now and it felt like it was due time to reaquaint myself with Unity after a pretty long break. I’ve been doing several programming and developing courses at the same time at my school so I haven’t felt like working at Escape Plan Z during this period. Currently I’m learning some Android programming, C programming and Web development and I’m planning on making a new category on the blog for some other things I’m working on besides these games.

Onward to the game! I’ve been looking in to an issue I had last time with my gun pickup not working properly. The problem was that the gun would stick to the FPS camera at a weird vector position as seen in the picture below.

I tried to manually change the position whenever Update is called on the FPSCamera objects script by using preset offsets from the editor. This didn’t seem to work at all and the gun would simply not change and appeared to be “glued” in position. To solve this issue I created a separate game object childed to the FPSCamera and set the offsets on that object instead of the gun. Then the problem was fixed as it seems the gun prefabs position couldn’t be altered.

 

 

 

 

So this is how the structure goes:

 

 

The Player object (FPSController) has a PlayerView (FPSCamera) attached to it by default. This PlayerView represents the ingame camera which the player views the game through. Below the PlayerView I then had to create a separate game object called weapon. The gun prefab is then instantiated on the weapon object’s position which has the preset offset to the PlayerView.

 

 

 

 

 

 

 

 

 

Now the gun is instantiated correctly and I can move forward with other things 🙂

 

0 thoughts on “Long time no see

  1. You said it adequately.!
    http://canadianonlinepharmacynnm.com/
    canadian family pharmacy canadian cialis top rated canadian pharmacies online canadian pharmacies online
    no prescription pharmacy
    canadian viagra
    canadian prescription
    <a href="http://shket.ua/product/detskiy-naduvnoy-basseyn-intex-56440/?DIGNITY=You+revealed+this+well.+http%3A%2F%2Fcanadianpharmaciescubarx.com%2F+rx+price+comparison+canada+online+pharmacies+%0D%0Adrug+price+%0D%0Acanadian+online+pharmacies&SHORTCOMINGS=You+revealed+this+well.+%0D%0Ahttp%3A%2F%2Fcanadianpharmaciescubarx.com%2F+%0D%0Arx+price+comparison+%0D%0Acanada+online+pharmacies+%0D%0Adrug+price+%0D%0Acanadian+online+pharmacies&COMMENT=You+revealed+this+well.+%0D%0Ahttp%3A%2F%2Fcanadianpharmaciescubarx.com%2F+%0D%0Arx+price+comparison+%0D%0Acanada+online+pharmacies+%0D%0Adrug+price+%0D%0Acanadian+online+pharmacies&NAME=Patrickcorry&USED=&RATING=0&PRODUCT_NAME=%D0%94%D0%B5%D1%82%D1%81%D0%BA%D0%B8%D0%B9+%D0%BD%D0%B0%D0%B4%D1%83%D0%B2%D0%BD%D0%BE%D0%B9+%D0%B1%D0%B0%D1%81%D1%81%D0%B5%D0%B9%D0%BD+Intex+%2856440%29&PRODUCT_ID=28448″>best canadian mail order pharmacies
    <a href="http://www.nationwidemarketing.com/blog/?form2mailerror&inquiry=Business+Development&fname=Patrickmow&lname=Patrickmow&email=jimmiepak%40gmail.com&company=google&phone1=85794376484&phone2=88926845563&phone3=87817464682&comments=+Lovely+forum+posts,+Kudos%21+http://canadianpharmaciescubarx.com/+drugs+without+prescription+%3Ca+href=%22http://canadianpharmacyntx.com//%22%3Ecanada+drugs%3C/a%3E+online+pharmacy+%3Ca+href=http://talahicc.com//%3Etrust+pharmacy+canada%3C/a%3E?form2mailerror&inquiry=Business Development&fname=QuentinWer&lname=QuentinWer&email=zittel020eejf@songwriter.net&company=google&phone1=85631548937&phone2=81135542146&phone3=82177716377&comments= Info clearly applied.. http://canadianpharmacymim.com/ buy prescription drugs online canadian pharcharmy online pharmacy canada canadian pharmacies online buy online prescription drugs online drugs prescription drug assistance meds online canadian pharmacy no prescription needed pharmacy canada“>drugs from canada
    canadapharmacy

  2. This is nicely put. .
    http://canadianpharmacyntx.com/
    no prescription online pharmacy global pharmacy canada canadian pharmacy meds canadian pharmacy
    buy drugs online
    drugs online
    <a href="http://tk-huolto.fi/albumi/yritys/2295377?m=+++Nicely+put.+With+thanks%21+++https://nicktambone.com/+++canadapharmacy+com+%3Ca+href=%22http://canadianpharmacyntx.com/%22%3Emexican+pharmacies+shipping+to+usa%3C/a%3E+prescription+drugs+canada+canadian+drugs+++%3Ca+href=%22http://fabriquewindowsaz.com/2014/05/hello-world/?unapproved=8369&moderation-hash=5044ca6a30ae79a14f9022ca77e741e3#comment-8369%22%3Ecanadian+pharmacies+without+prescriptions%3C/a%3E+++%3Ca+href=%22http://soulflyer.org/wp/?page_id=37&unapproved=28984&moderation-hash=bbad73ed9c37c4c1a00ccd57b5815410#comment-28984%22%3Ebuying+drugs+canada%3C/a%3E+++%3Ca+href=%22http://clickwaitget.com/product/dove-intense-repair-shampoo-650ml/?unapproved=30375&moderation-hash=87d950f2651047300f1c2d167798b4a1#comment-30375%22%3Ebest+online+canadian+pharcharmy%3C/a%3E+++%3Ca+href=%22http://kindersehnsucht-lebewohl.de/ferien-und-ein-haufen-kinder-oh-je?unapproved=9450&moderation-hash=2c22ac083b8b31c9fdff01672fb09c64#comment-9450%22%3Ecanadian+pharmacy+meds%3C/a%3E+++%3Ca+href=%22http://anticamarket.com/2017/03/sweet-clover-barn-vintage-english-country-decor/?unapproved=35198&moderation-hash=897c4310ad42902231b8eb1ce242ff68#comment-35198%22%3Ebuy+prescription+drugs+from+canada%3C/a%3E+++%3Ca+href=%22http://xn--80ahmi4e.xn--p1ai/?page_id=223&unapproved=110706&moderation-hash=31d8292c97a7ca361bba2a33bc9ae85c#comment-110706%22%3Ebuy+prescription+drugs+canada%3C/a%3E&s=Quentinfeele&err=captcha#album_comment”>canadian pharmacy no prescription
    mail order pharmacy
    canadian drugstore
    medical information online

Leave a Reply

Your email address will not be published. Required fields are marked *