Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by hizral84 · May 10, 2010 at 12:40 PM · gameobjecttrigger

Concept of level design (level 2)

Hi, this is the continuation of the previous post I've posted.

Before this I had a question regarding opening and closing chest. I've managed to do that already and currently I'm working on level 2.

Now for some more questions.

1.now i manage to push the object and when the box fall it will hit the trigger and allowing the gate to open so the character can pull the switch to open the door below.

2.I also manage to allow the character to open and close the gate when the character step on and off the trigger.

3.the problem i having right now is..how to make the floor switch have a spring characteristic.

"example: when a character walk on top of the floor switch it will slowly decend from it normal state.and when the character walk off the floor switch it will rise up again."

4.here is the link to elaborate more what im saying:

http://forum.unity3d.com/viewtopic.php?t=51223

sorry if my english is bad..

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by jester · May 10, 2010 at 04:32 PM

You could eother animate the switch in an animation package and play it when the Character walks on in or probably more simply just lerp or slerp the vertical scale of the switch based on whether the player has triggered it by walking on it.

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 hizral84 · May 11, 2010 at 07:56 AM 0
Share

my friend also suggested that method..but i want to learn how to use the spring joint, because im trying to learn more on technicality and game logic..

avatar image
0

Answer by Justin Warner · Dec 04, 2010 at 11:40 PM

You can check out iTween, they have Sprint like movements...

For the spring joint... http://unity3d.com/support/documentation/Components/class-SpringJoint.html

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

No one has followed this question yet.

Related Questions

Click on object to activate another object 3 Answers

How to pop up a window with image inside when click a game object? 0 Answers

Can't click gameobject when over another trigger? 1 Answer

Animation playing other object animation 0 Answers

Child collider triggering parent collider effects. 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