Thursday, September 19, 2013

Home Work #5




For my demonstration of physics and game mechanics I decided to make a very simple scenario in which the character wields a spinning baton like weapon and uses it to knock over and potentially destroy objects.
     To do this I created a cylinder for the baton and added the keys r and e to move forward and backward respectively and used the f key to rotate the baton in a roughly cone-like motion.  I did this through the logic editor using the sensors (the keys), the controller, and the actuator under the motion option making sure for the time being to establish global directions.
     The other objects were just cylinders and rectangular boxes which had specified properties through the physics "modifier".  I changed them from static to be rigid body with varying levels of mass and "bounce".  The end result being a spinning baton going forward to knock over various setting objects in the game.
     In our team's actual game this will be very useful because given the action of the game during gun/fight sequences it would be nice for the office environment to be destructible to a certain extent.  When you fire a weapon and it hits a clock or a coffee cup on accident it would be very cool to see that object fall down, shatter or just have any type of motion at all.  So this will be implemented in our office type setting to destroy and make a mess of the surrounding environment for entertainment and to reinforce the "reality" of the game world.
     Below are some screen shots of the baton on a trajectory towards the "in game" objects, consequently knocking them over.






1 comment:

  1. Did you use any special actuators, such as near, etc. Looks interesting, but rather coarse at this stage. Could you please label your blogs: Homework 5, etc to make clear what one is looking at?

    ReplyDelete