Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/06/26 05:32
Purchase A8 full licence version
by jcl. 10/05/26 12:12
Respect History setting for Z systems
by AndrewAMD. 10/02/26 15:43
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (JeyKey II, VoroneTZ), 14,153 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 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: 829
22�21'24"N 114�07'30...
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 829
22�21'24"N 114�07'30...
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 | 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