Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Shnayzr · Feb 06, 2015 at 07:40 PM · c#movementmobilemobile devices

transform.Translate moves the object too slow in ipad

Hello

i have an object which move constantly in Update() function with transform.Translate

however on the editor the object moves with high speed, but when i build the game on ios and test it on my ipad, the object moves tooo slow.

also how can i test the game on ios from the editor without building the game on my ipad?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Shnayzr · Feb 06, 2015 at 07:55 PM 0
Share
 public float ms;
 
 
 void Start()
 {
    ms = -700f;
 }
 
 void Update ()
 {
 transform.Translate (0, ms*Time.deltaTime, 0);
 }
avatar image daniss · Feb 06, 2015 at 07:56 PM 0
Share

You can use Unity Remote to test it on your phone. $$anonymous$$ore information http://docs.unity3d.com/$$anonymous$$anual/UnityRemote4.html

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by AngryBurritoCoder · Feb 06, 2015 at 07:42 PM

Not sure but try using transform.Translate( whateverYouGot * Time.DeltaTime); , this will make it frame independent. ( you will have to re adjust your speed you already set in the translate ).

But not sure if your problem is because of framerate or not, so might not work.

Comment
Add comment · Show 11 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Shnayzr · Feb 06, 2015 at 08:04 PM 0
Share

still not working :( moves normal on editor but slow on ipad

avatar image AngryBurritoCoder · Feb 06, 2015 at 08:06 PM 0
Share

tried building it to pc to check if its slower or not ?

avatar image Shnayzr · Feb 06, 2015 at 08:14 PM 0
Share

i just built it on pc and the speed was like the speed from the editor

avatar image AngryBurritoCoder · Feb 06, 2015 at 08:23 PM 0
Share

hmm it seems thats time.delta time should have helped, you sure it was correctly built with time.deltatime ?just making sure.

avatar image Shnayzr · Feb 06, 2015 at 08:42 PM 0
Share
 public float ms;
  
  
  void Start()
  {
     ms = -700f;
  }
  
  void Update ()
  {
  transform.Translate (0, ms*Time.deltaTime, 0);
  }

this is my code

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Making a bubble level (not a game but work tool) 1 Answer

Multiple Cars not working 1 Answer

Unity3d 4,script nGUI btn drag convert to move where i mouse click 1 Answer

Does anyone know of a way to assign an Axis or KeyCode to a GUI Button or Texture? I'm trying to make a 2D platformer on a mobile device. As you can tell, I have no Idea what I'm doing... 1 Answer

Character only moves a little when button is clicked. 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges