[=Weskey;69059]
Its design is very good, and great interaction with elements of the scenario. congratulations.
[/]
I’m really glad you like it!
[=Weskey;69059]
1 - You are only using Blueprint, or doing this using C + +?
[/]
I am exclusively using Blueprints since I don’t want to install VS2013. I am waiting for the editor to officially come to linux so I can hopefully use gcc.
[=Weskey;69059]
2 - Could you explain a bit how you did the gravitywall (as the ball can only use gravity that space near the wall).
[/]
I gave each wall segment a box component. Initially, I used the onOverlapBegin/End events to detect the pawn entering the gravity field. I disabled the gravity for the pawn while it was inside the box and passed it a gravity vector, aswell as a forward vector for camera alignment purposes.
This turned out to not work out with overlapping fields, so I switched to a different method. Now, when a pawn is inside the box, the box will add a gravity and forward vector to an array belonging to the pawn. On every tick, the pawn then checks whether is array has any contents. If it does, gravity will be disabled and the gravity vector is used for apply a force to the ball. The gravity vector (and the forward vector) is calculated as the average of all the vectors in the array, which results in a little smoother transitions (although I’m not yet entirely satisfied with this solution).
[=Weskey;69059]
3 - also explain a little about the process, to make the floor boards join, when the ball is close by (I like this effect, very good).
[/]
The inner workings of them are really unspectacular: I just check the distance from the actor to the pawn, and if it’s below a certain threshold, I use a lerp to smoothly interpolate from a time-randomized offset to the aligned position. Then I just aligned the tiles in the editor (in the editor I see the aligned position), and that’s really all. It took me less than 10 minutes from idea to completion.
I’ve made a quick level to demonstrate how the features might be used ingame. This clearly still needs a lot of work.
https://.com/watch?v=voaQ8OnMySc