Browse Search Popular Register Upload Rules User list Login:
Search:
What is wrong in my code

Image:
screenshot of the scene

Author: UnityDogGaming04

Group: Default

Filesize: 7.35 kB

Date added: 2019-07-27

Rating: 5

Downloads: 304

Views: 206

Comments: 7

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

I am fuming right now. I cant figure out what is wrong with my code.
I thought it was the atan function but now I'm not sure. Literally every single character in the thyme checks out and it REFUSES to work.
I am trying to get the circle here to point its cake directly toward the blue box, but it doesnt want to do anything. I made sure to predefine all of the variables but it's not working. It would be much appreciated if someone could kick the code a bit.
thanks.
Please log in to rate this scene
edit
Similar scenes
Title: Crack the code
Rating: 5
Filesize: 21 kB
Downloads: 319
Comments: 3
Ratings: 1
Date added: 2019/10/08 18:21:05
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: code lock
Rating: 5.625
Filesize: 123.71 kB
Downloads: 443
Comments: 5
Ratings: 2
Date added: 2010/12/15 19:20:35
Made with: Phun
Rating: rated 5.6
download
Title: Human Code
Rating: 5
Filesize: 38.83 kB
Downloads: 867
Comments: 0
Ratings: 1
Date added: 2020/03/28 22:02:57
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: SELF-MODIFYING CODE
Rating: 5.625
Filesize: 16.28 kB
Downloads: 515
Comments: 2
Ratings: 2
Date added: 2013/01/10 07:45:37
Made with: Algodoo v2.0.2 Edu
Rating: rated 5.6
download
Title: One Hit Wonder
Rating: 5
Filesize: 24.06 kB
Downloads: 431
Comments: 3
Ratings: 1
Date added: 2012/10/21 11:36:14
Made with: Algodoo v2.0.2 Edu
Rating: rated 5
download
Title: Find the code Mission 1
Rating: 5.375
Filesize: 341.54 kB
Downloads: 1350
Comments: 3
Ratings: 2
Date added: 2012/12/09 06:57:45
Made with: Phun
Rating: rated 5.4
download
go to that box and write this instead in postStep,

(e)=>{scene.my.posX = pos(0);
scene.my.posY = pos(1)}

Problem solved :tup:
thanks @faytree !

i just wanted to add, maybe it's better if you store the whole position, that shoud be faster and easier for you :
... scene.my.pos = pos ...
than later calling it, for example :
x = scene.my.pos(0)
y = scene.my.pos(1)
mohamed159357 -- Are you and UnityDogGaming04 the same person? I ask this for a couple of reasons, one is simply because the Rules do not allow a person to register more than one user account. So, if that is the case, then we will have to correct that by banning one of the two accounts.

Please explain in these comments what is going on with the two accounts, and we will try to figure out the best way to deal with this.

Thanks!

Xray, Algodoo Admin
no idea who mohamed159357 actually is. i play some if his scenes but idk. and faytree thanks for the help.
well i changed the code but now it's doing something weird. I'll share the new scene.
Okay, I looked into both accounts and there doesn't appear to be any similarities that would lead me to believe that both accounts are the same person. In fact, one of them (not yours) is located in Africa!

Sorry if I worried you. It's just my job!

Xray
Last edited at 2019/07/29 07:08:01 by Xray
Oh I dont mind it