Physics Phrustrations and Chaotic Connections

Physics Phrustrations and Chaotic Connections

Well hello lovely people! It’s that time again. Not only is it blog day, but the weather is finally turning! Hope you are enjoying the sunshine. If you aren’t, you should be! Or, well, read this blog first. Then enjoy the sun! Let’s go for a recap shall we?

I’ve been focussing on internals again. I wasn’t happy with how the movement felt, so I’ve been playing around with the logic. Now, the simplest solution would be to just use Unity’s premade CharacterController right? Sadly, this isn’t possible. The character controller Unity provides doesn’t cope with the physics requirements we have. Grabbing and dragging objects in such a way that the weight of the object affects the player’s movement was proving taxing. It’s possible I may try again, as I’m still not wholly sold on the movement, but I have made some decent improvements at this point I think.

The next thing on my list was to make the dog feel a bit more alive, to get it closer to how the finished product might feel. I knew this would be temporary, so I busted out some quick Sine and Cosine curves to make the dog both oscillate and rock back and forth.

Background for non-techies: We fairly often fall back onto some common utilities when coding. The Sine and Cosine curves are good examples of this. If you hark back to GCSE maths, you may remember that these curves give you values ranging from -1 to 1, regardless of what angle you give the function. Now that “angle” doesn’t have to be an angle at all. If you perhaps apply Sine/Cosine to time, a number that is constantly increasing, you will get a smooth repeating loop from -1 to 1 like this:

See the source image

With Cosine, the value Cos(0) is 1, with Sine, the value Sin(0) is 0. So depending on where we want to start, we can choose different functions. To make something that oscillates from 0 to maxY (where maxY is any desired maximum value), we just multiply the function (let’s say “Sin(time)” for ease) by maxY: “yPosition = Sin(time) * maxY”.
Though that isn’t quite right, is it? That would oscillate between -maxY and maxY. Hm. Well there’s a simple solution! We just take the “absolute value” of Sin(time). The absolute value just removes the negative of a number. So Abs(-2) = 2. Sorted. We can also adjust how long a full loop takes by changing how quickly time increases. But I’m getting a little carried away now!

The first attempt of this wasn’t… quite right:

Seems like I got some of my initial values wrong. For a start, the duration of the curve appears to be a decade, and the rotation looks a bit funky. I played around some more and got to this point:

We’re getting there, but this isn’t a game about Bambi, so I made some final adjustments:

Lovely! As a temporary aid to get that doggy feel, I’m very pleased with that. An interesting thing to note here is that that movement doesn’t affect anything about the gameplay. The collisions and the grabbing are all the same. This can be best seen in the second video, where I collide with a box I’m 3 feet above. This is deliberate, as the movement is visual flair only, and because it’s temporary, the less it modifies the better!

The final thing I want to talk about is the UI changes. Using the event system I detailed in the last post, I have now hooked up a Chaos Tracker that keeps tabs on what damage you are wreaking and updates a bar at the top of the game. The bar itself is very simple. It just scales the fill out from the left to the right as chaos increases. An event tells it the max chaos in a level and another event tells it when the chaos is changed. The result looks like this:

You can see there are still movement issues here…

My next steps are to get the max chaos calculating itself, though as we’re planning on having objects all give different chaos values depending on how you use them, that might be more trouble than it’s worth! I’m going to go get on with that now I reckon, then make the most of the sun!

Matt out.

81 thoughts on “Physics Phrustrations and Chaotic Connections

  1. Hi, I’m sending you this message via your contact form on your website at egoproblemsgames.co.uk. By reading this message you’re living proof that contact form advertising works! Do you want to blast your ad to millions of contact forms? Maybe you prefer a more targeted approach and only want to blast our ad out to websites in certain business categories? Pay just $99 to blast your ad to 1 million contact forms. Volume discounts available. I have more than 35 million contact forms. Let’s get the conversation started, contact me via Skype here: live:.cid.aebc78a94c13344c

  2. I have a question. You just read this message right? That means you’re now a potential customer and I can do the same thing for your business. I can blast YOUR ad to 1 million websites just like I did to yours for just $98. More pricing plans are also available, contact me via Skype for details: live:.cid.dd8a3501619891fe

  3. I have a question. You just read this message right? That means you’re now a potential customer and I can do the same thing for your business. I can blast YOUR ad to 1 million websites just like I did to yours for just $98. More pricing plans are also available, contact me via Skype for details: live:.cid.303294bd15a81bc7

  4. Hello,

    We noticed egoproblemsgames.co.uk is only listed in 8 out of 2500 directories.

    This severly impacts your backlinks and search engine rankings.

    Come get listed in all 2500 directories on DirectoryBump.com

  5. I just posted this ad message to your website and you’re reading it. That means it’s done its job! I post messages like these to millions of sites every day! I can do the same for YORU AD message for less than $100 to reach a million sites. Send me a skype message here to discuss: contactformmarketing2023

  6. Get Found On The First Page of Google in Less Than 2 weeks by Using our Priority Stealth S.E.O. Syndication Method.

    Pay us once and you’ll get Organic Search Engine Results using videos that will continue to drive traffic 24/7 year round!

    The Benefits are incredible – since by paying us once there will be:

    – No Additional Ad spend needed!

    – No Additional Costs for Ad copy!

    – No Additional Costs per Clicks!

    – No Commercial Licensing fees ever!

    Get Started Today and Get Seen Tomorrow!

    Learn More: Reviews2Videos.com

  7. Hi,

    We are a provider of premium databases from the UK for companies.

    I want to know if you need any sort of data for your business in the UK?

    Please visit or pcxleads.com respond to this email and let us know what you are looking for.

    Regards
    Jannes Welman

  8. Hi there, would getting brand mentions on credible sources like Forbes, BBC, The New York Times, and The Guardian boost your site’s rankings and increase traffic?

    Would that interest you?

    Andrew

  9. Work From Home With This…You Will Never Look Back
    $500+ per day, 100% Free Training, go here:

    ezwayto1000aday.com

  10. Hello egoproblemsgames.co.uk

    We noticed your website egoproblemsgames.co.uk doesn’t have a Mobile App for iOS and Android.

    We are building Android and iOS Apps for $99 each a combo deal of $149 for both

    You can get a free preview on PCXLeads or email us back and we will send you a mockup for your apps.

    This promo is valid till end of June 2024.

    Regards,
    PCXLeads

  11. Hello,

    It is with sad regret that after 12 years, LeadsMax.biz is shutting down.

    We have made all our databases available on our website.

    25 Million companies
    527 Million People

    LeadsMax.biz

  12. Work From Home With This 100% FREE Training…, I Promise…You Will Never Look Back
    $500+ per day, TRUE -100% Free Training, go here:

    ezwayto1000aday.com

  13. Hello from LeadsMax.biz!!

    We are shutting down and have made all our data available for all the countries!

    Come check us out and search your business and consumer data for free

    LeadsMax.biz

  14. Your blog is a testament to your passion for your subject matter. Your enthusiasm is infectious, and it’s clear that you put your heart and soul into every post. Keep up the fantastic work!

  15. Your blog is a breath of fresh air in the often stagnant world of online content. Your thoughtful analysis and insightful commentary never fail to leave a lasting impression. Thank you for sharing your wisdom with us.

  16. Normally I do not read article on blogs however I would like to say that this writeup very forced me to try and do so Your writing style has been amazed me Thanks quite great post

  17. Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

  18. Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! By the way, how can we communicate?

  19. We are proud to present our latest product for business data

    Experience our searches on worldwide b2b data

    This offer is a comprehensive dataset of each country

    Which are all kept up to date on a monthly basis

    Try out the open search we offer to see the full extent of our dataset

    You can never have enough leads
    LeadsBox.biz

  20. Thanks for ones marvelous posting! I actually enjoyed reading it, you happen to be a great author.I will ensure that I bookmark your blog and will come back in the future. I want to encourage you to ultimately continue your great posts, have a nice weekend!

  21. Fantastic beat ! I wish to apprentice while you amend your site, how can i subscribe for a blog site? The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea

  22. I really like your writing style, superb information, thank you for putting up :D. “If a cluttered desk is the sign of a cluttered mind, what is the significance of a clean desk” by Laurence J. Peter.

  23. I’ve been browsing online more than 3 hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my opinion, if all web owners and bloggers made good content as you did, the web will be a lot more useful than ever before.

  24. An interesting discussion is worth comment. I think that you should write more on this topic, it might not be a taboo subject but generally people are not enough to speak on such topics. To the next. Cheers

  25. whoah this weblog is great i love reading your articles. Stay up the great paintings! You already know, lots of people are searching round for this information, you can help them greatly.

  26. I really like your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you? Plz respond as I’m looking to create my own blog and would like to find out where u got this from. thank you

  27. Woah! I’m really loving the template/theme of this website. It’s simple, yet effective. A lot of times it’s very difficult to get that “perfect balance” between user friendliness and visual appearance. I must say you’ve done a very good job with this. Additionally, the blog loads super quick for me on Chrome. Outstanding Blog!

  28. I like what you guys are up also. Such intelligent work and reporting! Keep up the superb works guys I have incorporated you guys to my blogroll. I think it’ll improve the value of my website :).

  29. Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me. Anyways, I’m definitely happy I found it and I’ll be book-marking and checking back frequently!

  30. Hi

    If you need some fresh new leads for this last push to the end of the year, look no further.

    At blulinedata we have done all the hard work for you, offering fresh data sets all ready for use. Every data set you buy from us gaurantees you a new contact. Our datasets have already been cleansed for you, having not a single record without contact information.

    We are growing our data sets to cover the whole world and any industry you can think of.
    Every dataset is priced per record so never end up spending money on excessively large datasets you do not actually need.
    Feel free to browse through our current selection and request any country you would be interested in via our chat.

    Regards,
    BluLineData.com

  31. Hi

    If you need some fresh new leads for this last push to the end of the year, look no further.

    At blulinedata we have done all the hard work for you, offering fresh data sets all ready for use. Every data set you buy from us gaurantees you a new contact. Our datasets have already been cleansed for you, having not a single record without contact information.

    We are growing our data sets to cover the whole world and any industry you can think of.
    Every dataset is priced per record so never end up spending money on excessively large datasets you do not actually need.
    Feel free to browse through our current selection and request any country you would be interested in via our chat.

    Regards,
    BluLineData.com

  32. I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  33. I simply couldn’t depart your web site prior to suggesting that I extremely enjoyed the standard information a person provide on your visitors? Is gonna be back ceaselessly in order to check out new posts

  34. Its superb as your other content : D, thanks for posting. “Experience is that marvelous thing that enables you to recognize a mistake when you make it again.” by Franklin P. Jones.

  35. It’s a pity you don’t have a donate button! I’d definitely donate to this brilliant blog! I guess for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to brand new updates and will share this site with my Facebook group. Chat soon!

  36. Its such as you read my thoughts! You appear to know a lot about this, like you wrote the e book in it or something. I think that you simply can do with a few p.c. to pressure the message home a bit, but instead of that, this is wonderful blog. An excellent read. I will certainly be back.

  37. The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention.

  38. whoah this blog is excellent i love reading your posts. Keep up the great work! You know, lots of people are looking around for this information, you can help them greatly.

  39. What’s Going down i’m new to this, I stumbled upon this I’ve found It positively useful and it has helped me out loads. I hope to contribute & aid different customers like its aided me. Great job.

  40. Explore a wide range of unique cycling gear, including jerseys, bib shorts, and custom designs. Perfect for every cyclist, from casual riders to pros. High-quality materials, standout designs, and options for personalization make it easy to find the perfect fit for you or your team. Shop now and ride in style!

  41. Hiya, I’m really glad I’ve found this info. Nowadays bloggers publish just about gossips and web and this is actually irritating. A good website with exciting content, that’s what I need. Thank you for keeping this web site, I will be visiting it. Do you do newsletters? Cant find it.

  42. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  43. With havin so much content and articles do you ever run into any issues of plagorism or copyright infringement? My blog has a lot of unique content I’ve either created myself or outsourced but it appears a lot of it is popping it up all over the web without my agreement. Do you know any solutions to help protect against content from being ripped off? I’d really appreciate it.

  44. I do not even know how I finished up right here, however I assumed this publish was great. I do not recognise who you are but certainly you are going to a well-known blogger in case you aren’t already 😉 Cheers!

  45. I like what you guys are up too. Such smart work and reporting! Carry on the excellent works guys I have incorporated you guys to my blogroll. I think it will improve the value of my site 🙂

  46. It is the best time to make a few plans for the future and it is time to be happy. I’ve learn this publish and if I may just I wish to recommend you some fascinating issues or advice. Perhaps you can write next articles regarding this article. I wish to learn even more things approximately it!

  47. Hello there, just became aware of your blog through Google, and found that it’s truly informative. I’m going to watch out for brussels. I will appreciate if you continue this in future. A lot of people will be benefited from your writing. Cheers!

  48. certainly like your web-site however you need to take a look at the spelling on several of your posts. A number of them are rife with spelling issues and I to find it very bothersome to tell the truth nevertheless I¦ll surely come again again.

  49. Hi!

    Is your website not making the sales that it should?

    We build highly branded shopify stores.

    Be your own boss, you want a BUSINESS, not a website only!
    The best value for your money (17k happy clients)
    We provide you with lifetime support!

    No sales in 30 days from our system? Get a full refund

    Come get your shopify site built for you and dominate your market.
    PCX Group.com

  50. I?¦ve recently started a web site, the info you offer on this web site has helped me greatly. Thanks for all of your time & work.

Leave a Reply

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

Back to top