Thursday, January 26, 2012

Turret Lock On

I share form what I learn ~~~~
This JavaScript is suitable for AI to Target Lock on our Avatar (suitable for Enemy) Here the script that I want to share with you all (Original form tornadotwins)

Only for Unity 3D

----------------------------------------------------------------------------------------------------------------


var LookAtTarget:Transform;
var damp = 6.0;
var bullitPrefab:Transform;
var savedTime=0;

function Update ()
{
if(LookAtTarget)
{
var rotate = Quaternion.LookRotation(LookAtTarget.position - transform.position);

transform.rotation = Quaternion.Slerp(transform.rotation, rotate, Time.deltaTime * damp);

var seconds : int = Time.time;
var oddeven = (seconds % 5);

if(oddeven)
{
Shoot(seconds);
}
}
}

function Shoot(seconds)
{
if(seconds!=savedTime)
{
var bullit = Instantiate(bullitPrefab ,transform.Find("spawnPoint").transform.position ,
Quaternion.identity);

bullit.rigidbody.AddForce(transform.forward * 2000);

savedTime=seconds;
}
}



------------------------------------------------------------------------------------------------------------------

When you done copy this JavaScript. Save it and drag the JavaScript into the name of the Turret on the Hierarchy. Click the Turret that already have this Script and look at the Inspector and look for this Script. It will show Script , Look At Target , Damp , Bullit Prefab and Saved Time . Look for the (Look At Target and drag the Name of the Target from Hierarchy to let the Turret Look on it. For Bullit Prefab, just drag the name of the bullet that you already ready it for the turret to shoot it.

Wednesday, January 11, 2012

Viruz War




This is my Viruz Mobile Image








This is my environment for infected area (Viruz Area)


In this assignment, I need to create a battle Flying ship. This is my latest assignment and it still not complete yet (on going) Modeling in Google Sketch Up

Racing Car












In this Assignment, every body need to form a group. Each group must have 4 members. I get this theme (scenery, Hilly and Twisty)
During this assignment, all student must use 3D Rad Software. A bit difficult for new user to use it but it was easy to understand compare to Unity 3D. During this assignment, we must make a multiplayer game
During this assignment, I create a 3D model bby using Google Sketch Up. In this assignment, I use one of my Model Making Assignment and put into this game

Happy









In this Assignment, student need to form a group. Each group have 3 people. Every group have 3 theme, Happy,Sad, and Angry. I get Happy theme for this assignment.

In this assignment, I receive a good feedback from my Dean and also from my Lecturer. Not only good feedback, I get a good mark on this assignment

Flood Simulation









In this assignment, my lecture point me to create a Flood Simulation by using 3D Rad but 3D Rad is something new for me. So , I done it in Unity 3D since I more comfortable with it. in this simulation I need to create a Flood scene. Most of the building I done it in Google sketch Up since to create a low poly building are easy in Google Sketch up compare to 3D Max

Space Machine


In this assignment, I need to go Science Center to take an idea from there. Beside that, I need to make a 3D camera for this simulation. That is why there is two image from 1 picture


This is Main Menu. We can click Exit to exit the game and Start to start the simulation



This is character selection within iron and steel


This is room where the magnet will make the character slow if we are using Iron Character



This is how it look the room of magnet from outside




In this picture we need to activate the solar gun to shoot into satellite. We just need to stand near to the platform to activate it




This is the picture where the satellite will reflect the light



This is the last part where we need to grab the mineral by using a crane.
Overall, this simulation are not 100% complete since a lot of stuff I need to learn to using Unity 3D

Tuesday, January 10, 2012

Truck Shape Sorter









On this Assignment , I need to create a simulation of Shape Sorter. I use fish tank truck as my theme. My target audience probably kids around 3 to 6 years old

Amazon E Gallery






This is my Main Major Assignment (virtual Reality). During this assignment, student need to create or design the E Gallery. I put almost all my past Assignment into my E Gallery. I choose Amazon theme for my E Gallery