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 VJoker · Dec 10, 2014 at 10:48 AM ·

help! i want to speed faster ,don't want to change position length ..

hello,everyone

when I tried to do a shoot arrows script,it always has a problem with it

I want the arrows move faster but i dont want to change the position length like move faster.

It will has a problem when I used the collider

I'm a Taiwanese. My English is not good enough.

I hope you guys know what am I talking about... thank you.

here is some scripts I used but not working

 transform.position += Vector3.right * 50 * Time.deltaTime;
 rigidbody2D.AddRelativeForce(Vector3.left * 50);
 transform.Translate(50 * Time.deltaTime,0,0);
Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Mmmpies · Dec 10, 2014 at 10:00 PM

My Taiwanese = 0 so you're better at my language than I am at yours.

I attach a script to the arrow prefab that when fired uses this:

 rigidbody.AddForce(transform.TransformDirection (Vector3.right) * (_force / 5));
         rigidbody.useGravity = true;

for an level 1 character _force = 1000 so (Vector3.right) * 200

I could post the full script but a lot wouldn't be needed by you.

Hope some of this helps.

EDIT:

Sorry been at work. There is a language barrier but there's always a way round these things :¬)

Can you post some screen shots to show what's happening and draw on the extra bit's you want.

Or get CamStudio so you can post a video.

Sorry your English is very good but I'm just not sure what you want.

Comment
Add comment · Show 1 · 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 VJoker · Dec 11, 2014 at 01:17 AM 0
Share

thanks for answering me !

actually, I want the arrows to kill the enemy in the box.

(box is Invincible,enemy can jump and enemy is safe in the box.)

all the API that I know had a problem when I would like to let the speed faster.

In some situation, the arrows might cross the box,or kill the enemy in the box.

 rigidbody.AddForce(transform.TransformDirection (Vector3.right) *(_force / 5));

I have tried your script ,but it has the same problem when I changed the _force to larger :(

I think I would like to the position move like 123456789 (1 second)

                             not like 1 3 5 7 9 (1 second)  

thank you for answering me again :) (hope you know what I am talking about XD)

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Accessing other script's variable into another script 0 Answers

Help My TP.js Script isn't working 1 Answer

change skybox via script help ? 1 Answer

Local Euler Angles problems. 0 Answers

button multitouch help 1 Answer


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