Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (Nymphodora, AndrewAMD, Quad, TipmyPip), 889 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 15 of 15 1 2 13 14 15
Re: unity 3 [Re: Wicht] #349996
12/13/10 03:57
12/13/10 03:57
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Originally Posted By: Wicht
After the trouble at Garagegames/Instantaction, i played a little bit with Unity. But what i got was unacceptable logic.
Example:

Code:
function OnGUI () {
	if (GUI.Button (Rect (10,10,150,100), "I am a button")) {
		print ("You clicked the button!");
	}
}



With "if (GUI.Button (Rect.... " i should normally examine, if the object was created successfully or not, but not to get a click-event.


By the way:

I tried the mouselook-Example from the manual.

Code:
// Performs a mouse look.

var horizontalSpeed : float = 2.0;
var verticalSpeed : float = 2.0;

function Update () {
   // Get the mouse delta. This is not in the range -1...1
   var h : float = horizontalSpeed * Input.GetAxis ("Mouse X");
   var v : float = verticalSpeed * Input.GetAxis ("Mouse Y");
   transform.Rotate (v, h, 0);
}



You want to see the result? Click here


Sorry, but Unity is not the Holy Grail.


A barebone correct mouselook code is

Code:
var speed : float = 5.0;

function Update () {
	var x : float = Input.GetAxis("Horizontal") * Time.deltaTime * speed;
	var z : float = Input.GetAxis("Vertical") * Time.deltaTime * speed;
	transform.Translate(x, 0, z);
	transform.Rotate(Input.GetAxis("Mouse Y") * -speed, 0, 0, Space.Self);
	transform.Rotate(0, Input.GetAxis("Mouse X") * speed, 0, Space.World);
}



Re: unity 3 [Re: Frederick_Lim] #350423
12/15/10 22:52
12/15/10 22:52
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
What i like in Unity , is that you can make tools integrated in the editor directly and easily laugh

It can be a new panels or tools and framework to manage things for you.
For example the last one is a Decal Framework !

Some Video :

Video Decal Framewok

What is great , is thate the decal can be animated
like blood or some paint color that falls on a wall !
I'm not sure if it is usefull , specially when you play some
FPS , where you don't stop to run and shoot all the time, without taking time to look at something laugh

Anyway great framework among some other ones !

For people interested here is the thread :

Decal Framework

Page 15 of 15 1 2 13 14 15

Moderated by  aztec, Blink, HeelX 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1