26
Apr 12

Het was een blanke jongen


Er is eergisteren een meisje verkracht in de wijk waar ik woon. Zes jaar is ze. En ze was gewoon buiten aan het spelen in de speeltuin, toen er een jongen langskwam die deze dingen met haar deed. Vreselijk nieuws. Vreselijk voor het meisje en haar familie, bekenden om haar heen. Maar ook vreselijk voor [...]
10
Apr 12

Opensourced my s/RTBH implementation


Finally, after 2.5 years of trying, coding, refactoring and rebuilding, I’ve finally released my s/RTBH implementation. This implementation is built using python/postgresql, is feeded through regexp-based rules on top of a syslog-feed together with a cli-tool to list ip’s. The actual s/RTBH implementation uses templated bird configuration files to insert new ip’s into iBGP.\ This [...]
07
Apr 12

One night to paradise


The trip to paradise from last night
Zarya – One night to paradise.mp3
Hosting tnx to Vex

04
Apr 12

2 hours of goa


Here is 2 hours of goa Download here tnx to Vex

02
Apr 12

27!


27 jaar geleden, ergens rond 20.00 uur, ben ik geboren. Vandaag ben ik dus jarig! Terwijl het om mij heen begint te roezemoezen dat ik nu bijna 30 ben, ben ik vooral blij dat ik er weer een jaartje bij kan tellen. Ik ben iedere dag, goed of slecht, blij met het feit dat er [...]
24
Mar 12

Electronica voor dummies


Electronica. Wat is dat nu eigenlijk? En hoe werkt het? Stoneshop heeft tijdens een lezing “Introductie electronica” uitgebreid uitgelegd waar termen als “weerstand“, “condensator“, “spoel“, “diode” en “transistor” voor staan. Met mooie metaforen als tuinslangen, emmers en sjoelbakken gingen we aan de gang. Het eerste onderscheid wat we leerden te maken was dat er actieve [...]
20
Mar 12

A small, but funny, fail.


So, I have this bug where when I shoot a bullet from a turret, the cruiser starts to spin! Not the intended behaviour :)


On Youtube

15
Mar 12

Tijd voor jezelf


13
Mar 12

Making a turret in Unity 3D


As a start to Unity3D I tried to make a turret that consists of 2 parts. One base part and one barrel part. The barrel is connected via “hinges” to the base part.Turret Rotation

On this image the base(2) and the barrel(3) is shown whit their intended rotations around their axis. The base rotates on the y axis and the barrel moves up and down on the x axis.
It is important to have the z axis point forward, since that is what Unity assumes to be forward. (I discovered that with trail and error instead of just reading up on the subject)

Hierarchy

Turret HierarchyWhen that was done i needed to place it in a proper hierarchy. The Top is an empty GameObject. In there I put an other empty GameObject and named it Sides, and added 2 pillar cubes to it. The barrel is a cube renamed to CenterPiece, the cube inside it is to show where to front is.

Scripting

We have two rotating parts. The rotation is done independently from each other but together they will point at an object.

Got values?

I got the rotation values towards the other object with the neat little Unity function: LookAt. Lookat points the z axis towards the object.
I only need two rotation values. So I saved the values before the lookAt, called lookAt, saved the new rotation values, and set the rotation back to the old values before rotating.

Turning

I made two separate scripts for the base and barrel, while the code is very similar there are slight differences like the axis.
I use a simple transform.Rotate with the help of Mathf.MoveTowardsAngle to smootly turn to only on the required angle. I first tried turning with slerp, but the barrel and base rotated slightly out of sync making the whole thing look terrible. MoveTowardsAngle also gives a nice constant rotation speed, which was exactly what I was looking for.

11
Mar 12

Eindelijk beveiligde e-mail!


Ja, vandaag is het dan zover. Ik heb eindelijk GPG keys gegenereerd! Je kunt mijn public key hier vinden. Het is natuurlijk direct geupload naar de key servers, dus als je me beveiligde e-mailtjes wilt sturen kun je het ook daar downloaden. :-) Key ID: 0x6A350821 Fingerprint: 311D F74C DD64 2D2D 3334 B60B FFA8 15E1 [...]