Gamestudio Links
Zorro Links
Newest Posts
Bmap creation - wrong Alpha values
by txesmi. 12/11/19 12:43
A9
by preacherX. 12/11/19 11:01
Error Message 010: invalid stops
by Volker. 12/11/19 08:25
AssetFix & Assets.csv
by MatPed. 12/11/19 07:03
How to handle profit in a TMF during training
by StefanCGN. 12/09/19 20:09
Simulate complex commission costs [Test]
by AndrewAMD. 12/09/19 13:52
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
6 registered members (Iglarion, timW, MatPed, Quad, 2 invisible), 659 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
PabloMF, deepscreener, wzschultz, Alit, cmor
18341 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: A9 [Re: mehrdad12] #478611
11/14/19 15:28
11/14/19 15:28
Joined: Sep 2005
Posts: 347
Germany
preacherX Offline
Senior Member
preacherX  Offline
Senior Member

Joined: Sep 2005
Posts: 347
Germany
My dream would be to use lite-C in Unity! ^^

Unity C#: transform.position = new Vector3(transform.position.x + 10 * Time.deltaTime, transform.position.y, transform.position.z);
A8 lite-C: my.x += 10 * time;

Re: A9 [Re: preacherX] #478691
11/26/19 17:52
11/26/19 17:52
Joined: Sep 2003
Posts: 9,856
F
Firoball Offline
Senior Expert
Firoball  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,856
Originally Posted by preacherX
My dream would be to use lite-C in Unity! ^^

Unity C#: transform.position = new Vector3(transform.position.x + 10 * Time.deltaTime, transform.position.y, transform.position.z);
A8 lite-C: my.x += 10 * time;



Who is writing code like this? grin

https://docs.unity3d.com/ScriptReference/Transform.Translate.html

Re: A9 [Re: preacherX] #478700
11/28/19 15:30
11/28/19 15:30
Joined: Jul 2008
Posts: 1,975
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 1,975
Germany
Originally Posted by preacherX
My dream would be to use lite-C in Unity! ^^

Would be nice indeed. laugh


My entry...your exits
Zombies dont like pink glow slime, fact!
"We gonna rock down to electric avenue" "One way ... or anotha ..."
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
-=GOOGLE IS SKYNET=-
rayp.flags |= UNTOUCHABLE;
Re: A9 [Re: Firoball] #478763
Yesterday at 11:01
Yesterday at 11:01
Joined: Sep 2005
Posts: 347
Germany
preacherX Offline
Senior Member
preacherX  Offline
Senior Member

Joined: Sep 2005
Posts: 347
Germany
Haha, I was indeed doing it... I'm now working for two years with Unity and never get aware of the translate function! ^^

However, but even now

my.y += 10 * time;

is still shorter than

transform.Translate(0, 10 * Time.deltaTime, 0, Space.World);

Page 2 of 2 1 2

Moderated by  aztec, Spirit 

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