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 dcarpiom1985 · Mar 16, 2015 at 01:38 PM · unity 5rigidbodyvelocity

Problems with velocity in Unity 5

Hi. When I do GetComponent().velocity = new Vector3(speed, 0f,0f); in Start function to a Unity Cube, the cube moves well. However when I do the same in a own object (model with 3d Studio) the object stop.

I have created a physic material without friction and the gameObject rigidbody properties (Unity cube or my own gameObject) have Drag 0, Angular Drag 0, gravity enabled and isKinematic disabled;

Thanks and sorry for my English level

Comment
Add comment · Show 4
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 B3aT · Mar 16, 2015 at 02:53 PM 0
Share

$$anonymous$$aybe the object has weight, try to disable gravity or multiply speed by 100000 and see if it moves. If so you need a bigger force to push it.

avatar image ZDS Alpha · Mar 16, 2015 at 03:06 PM 0
Share

$$anonymous$$ake sure that the "speed" has much value? in order to move object?

avatar image Glurth · Mar 16, 2015 at 03:08 PM 0
Share

The only difference between the two gameObject, (one that uses the imported mesh, and the cube), should be the $$anonymous$$ESH selected in the $$anonymous$$ESH FILTER component. Everything else should be the same. Is this the case? What happens if you changed the selected mesh to your imported mesh, in the cube's mesh filter? (the gameobject wont be a cube anymore, but will keep the same name)

avatar image ZDS Alpha · Mar 16, 2015 at 03:27 PM 0
Share

$$anonymous$$ake sure you added script that works for your imported object.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Digital-Phantom · Mar 16, 2015 at 03:10 PM

try reducing the mass of your object.

Comment
Add comment · 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
0

Answer by sebeisdrache · Mar 16, 2015 at 04:03 PM

try somehing like:

 GetComponet<Rigidbody>().velocity = speedvector;


Comment
Add comment · 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
0

Answer by dcarpiom1985 · Mar 17, 2015 at 01:36 AM

The project was created in Unity 4.6. Today I updated to unity 5. In v4.6 the object works well, but in v5 the object stop.

In the other hand, I fix the problem apply GetComponent().velocity = new Vector3(1,0,0) in the FixedUpdate function.

Comment
Add comment · 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

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

7 People are following this question.

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

Related Questions

Player movement not working with unity 5 1 Answer

Problem reading/getting from rb.velocity value? 1 Answer

Velocity powered rigidbody on a moving platform without parenting. 3 Answers

Can't access the velocity of a rigidbody: 'Rigidbody' does not contain a definition for 'velocity' 1 Answer

Can't access rigidbody commands 'Rigidbody' does not contain a definition for... 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