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 BlackArcane · Oct 07, 2012 at 07:38 AM · gridbuildingminecraftblocksstyle

MaK like building script help...

Hey! I saw this video recently and I really want to recreate the building system for my game. It looks like it can be done in Unity3D, but it appears to be following a grid, which I don't know how to make. I am only interested in positioning the blocks and then converting them to a rigidbody so I can apply force to them. Oh and also removing them from the rigidbody when they are detached from the structure.

The video is here: http://www.youtube.com/watch?v=7sXnwa9bt6g&feature=g-all-u

Thanks in advance.

P.S. In the video, you can see a nice highlighting effect that appears when a cube is positioned. That's a shader, right?

Comment
Add comment · Show 5
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 Fattie · Oct 07, 2012 at 07:41 AM 0
Share

honestly you just need to download Unity, and start working through the documentation and tutorials.

your question is way too broad to offer meaningful help.

for exampleit's very easy to add/take away a rigidbody in your code. suggest you glance at the "rigidbody" page in the documentation

But you just have to build general skills. Good luck ! Someone will orbably close this question since it's so general

avatar image BlackArcane · Oct 07, 2012 at 07:57 AM 0
Share

O$$anonymous$$, I hopefully can attach a rigidbody to a GameObject. How can I position the cube like that? What I am mainly interested in, is the positioning system.

avatar image Fattie · Oct 07, 2012 at 08:57 AM 1
Share

there's no concise answer.

it would be like asking "how does photoshop work"?

very likely, if you have your mouse near an existing cube, it defines a new possible position by taking the existing cuibe and adding one height to it. if you click to create, use that new position for the new cube.

if you ask a REALLY SPECIFIC QUESTION -- include a screen shot (not a long video) -- about some specific aspect I'm sure people will help

avatar image BlackArcane · Oct 07, 2012 at 11:00 AM 0
Share

I kinda figured it out on myself, but the cube is not of 1 height and what is 1 (cm, m?). That's what I am asking. How to apply a grid.

avatar image Fattie · Oct 07, 2012 at 11:15 AM 0
Share

basically - it is meters

if you want to "click" something to a posiion, you could try something like

x position = $$anonymous$$athf.Round( x position )

suggest you read the doco for the $$anonymous$$athf class

0 Replies

· Add your reply
  • Sort: 

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

10 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

Related Questions

Can someone fix this building and breaking code? 0 Answers

Help! Saving blocks in a grid-based building system 0 Answers

problem with gap at specific radius 0 Answers

Unity Wall placement help 0 Answers

Best solution for Grid-based building system? 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