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 matchman92 · Oct 06, 2012 at 05:03 PM · angleverticalrocket

Why is my rocket instantiated at the wrong angle?

I am working on an FPS for which we have been provided with a rocket launcher and rocket texture.

The rocket launcher instantiates the rocket from the right place and in the right direction, but the rocket is 90 degrees out - the rocket is fired straight out of the gun but the tip of the rocket points to the floor and not to the direction in which the rocket travels.

Any help would be greatly appreciated. Thanks Will

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 matchman92 · Oct 06, 2012 at 11:38 PM 0
Share

Could you just confirm what z-forward is? I think this might be it, thanks.

avatar image Fattie · Oct 07, 2012 at 06:21 AM 0
Share

z forward means that Z is forward.

you make a model of a car. the Z axis must be forward for the car. you make a model of a face. the z axis must be the way the face is looking. you make a model of a cow. the z axis must be the direction the cow walks forward

avatar image matchman92 · Oct 07, 2012 at 05:34 PM 0
Share

Okay I am certain that if I can solve this issue regarding Z forward, I will have also solved 3 of my other issues as well (meaning 3 less posts on Unity Answers!!)

So basically the problem is that I need to rotate the rocket so that its tip lies along the z axis

So what I do is open 3DS max, rotate the rocket so that its tip is along the Z axis, and then export the rocket as an fbx.

Then I import it into Unity and the axes are still wrong!!!

So my question is how can I get it so that the axes actually change in 3DS max??? Or how do I solve my above issue?

If anyone can answer this I will be a happy man!

avatar image Fattie · Oct 07, 2012 at 06:08 PM 0
Share

suggest you launch a new question on exactly that issue!

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by TheDarkVoid · Oct 06, 2012 at 11:44 PM

Your `Instantiate()` function may look somethign like this: `Instantiate(someGameObject, someTransform.position, Quaternion.identity);`

all you need to do is this:

`Instantiate(someGameObject, someTransform.position, someTransform.rotation);`

someTransform is that spawn point you have and someGameObject is your rocket.

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

12 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

Related Questions

Sliding game slope jittering. 0 Answers

Convert vertical angle to horizontal angle (C#) 1 Answer

Why does the raycast hit only objects/faces of a certain rotation? 1 Answer

How do I fire a 2D projectile based on it's current angle/location. 1 Answer

Clamp rotation 0 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