After much confusion and many help articles; our unreal project has finally been implemented into the git repository.
My username: cgregory11
Link to repository
Tuesday, October 11, 2016
Wednesday, October 5, 2016
Homework 5 - Game Asset: Code & Cubes
In Unreal I created a blueprint that allowed the player to pickup or move around objects based on their mass. Below is all the code used to accomplish this. Not only can the player pickup and move the objects, but they can use the mouse wheel to move the object closer or further from them. However, if the object is over 1000 kg in mass, the object will only slide on the ground and will not be able to be picked up.
In the testing room, I set up cubes of various sizes and masses, and a ledge behind the cubes.
The smaller cubes are picked up and moved around easily, and the player is able to pick them off the ground.
When a large cube is grabbed, it can still be moved around, but can no longer be moved off the ground.
Yet the player can still use the mouse wheel to bring the object closer and further away.
A staircase has been built out of the blocks, so the player can make it up the ledge, and then the smaller blocks can be taken with them.
This will be extremely useful in our game, as there will be entire rooms dedicated to puzzles where the player must move blocks around to reach their goal. Also only being able to pickup the smaller blocks constrains the player from using the block in another area.
Subscribe to:
Posts (Atom)