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 scorpiopl · Aug 06, 2012 at 07:34 PM · buildingconstruction

Simulate working with items (cutting, welding things together)

I'm currently rediscovering Unity and working on ideas for a game. The focal point of the game would be a constriction mechanic. Cutting, bolting, welding, binding with screws etc. I've got a few ideas how to make that work visually but I'm not sure how to create points dynamically on an object for other parts to attach to and simulate stress on them so that the connections can break under set conditions. Ideas ?

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 RodrigoSeVeN · Aug 07, 2012 at 12:16 AM 0
Share

You might want to check joints: http://docs.unity3d.com/Documentation/Components/class-FixedJoint.html Besides this option, maybe it's better to use code to manage joints, other than coding joints from scratch.

avatar image scorpiopl · Aug 07, 2012 at 02:06 PM 0
Share

Looks good. Either a Fixed or even a configurable joint as I'd want to give the user as much freedom as technically possible (within sane parameters).

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by The-Arc-Games · Aug 07, 2012 at 06:57 AM

We can offer you a simple idea for this, completely based off of unity's standard capabilities:

Create your "primitive" models with bones that correspond to all the valid positions for attachments. For example, if you have a cube that can be bolted, model it in any way you need (for example with holes on the sides) and then place armature bones in those spots.

Thanks to this, you can easily use those bones in the editor, to 'clamp' the objects together, by simply moving and rotating the root transform of the model to that of the intended clamping spot.

Of course you'll need some dedicated scripting for this, but it's pretty basic, all based on transform manipulation!

Do note that you can freely add empty gameobjects in the Unity editor to achieve the same result. Using the modeling program should give you more flexibility and accuracy, using the editor should be faster (but can became painful if you need to change your model, and then re-synch the attachment positions).

Comment
Add comment · Show 2 · 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 scorpiopl · Aug 07, 2012 at 02:19 PM 0
Share

I'm not really worried about the complexity of scripting. I might have worked on things that have not seen light of day and never will as far as game prototypes go but I'm no stranger to code.

I will have to investigate this idea further as fixed points of "clamping" isn't what I'm after (ideally of course. If there is no other way that's workable for any reason I'll go with fixed)

The near total freedom of construction and creation will be one of 3 things setting this apart from other games of this type so I really really need to have that polished to a perfect shine. Thanks for your input! Options are always good as I might be rusty (last time I played around with Unity was around the beginning of free version - 2.5 I think but I'm not sure)

avatar image The-Arc-Games · Aug 07, 2012 at 06:07 PM 0
Share

You might want to look into http://docs.unity3d.com/Documentation/ScriptReference/Physics.Raycast.html

With this, you simply raycast from your mouse or camera into the 3d object, and deter$$anonymous$$e the point in space where you want or need to 'clamp', and thus create a new gameobject there, where you eventually add your clamping and gameobject parenting logic.

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

9 People are following this question.

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

Related Questions

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

.assets file sizes 1 Answer

Is this a Glitch/bug or is it normal? 1 Answer

Place a building in a RTS game (like Age Of empires 3) 0 Answers

2D - Top Down town W/ Terrain 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