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 /
  • Help Room /
avatar image
0
Question by blesstc · Sep 24, 2017 at 08:30 PM · c#unity 5rigidbodytexturecards

struggling with Playing card game in unity

Hi,

I am new to unity ,I am planning to develop a card based game (similar to 29 card game). There should be 4 players in the game. Initially I just want to shuffle the cards and each one gets 8 cards . I just want to show the cards to each players and players can move one card at a time to the center of the board.

I am planning to buy cards from store to use in my game.

Q1) Should I apply rigid body concepts to each cards .? or any other techniques to represent the cards as object. Q2) Can I move the card with out applying physics and find whether it reaches center of the board ?

Q3) How to show all 8 cards to players ? should I use textures ? please guide me

Thanks

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 MaxGuernseyIII · Sep 24, 2017 at 09:52 PM 0
Share

This belongs on the forums. There are three distinct questions, one of which requires a subjective answer ("Should I...?").

avatar image blesstc MaxGuernseyIII · Sep 25, 2017 at 07:01 PM 0
Share

yes please

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by blesstc · Oct 02, 2017 at 05:16 PM

Any one can help me

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
avatar image
0

Answer by Karishi · Mar 01, 2018 at 01:12 AM

Q1) You need to apply a rigidbody to an object if its physicality - things like its ability to run into things - is important. There are almost no card games where this is true, so you probably don't need one. You can make the cards as 3D Planes, very thin 3D "cubes" (3.5 by 2.5 by 0.01, basically), or as sprites. Though if you're buying a card package from the store they'll probably already be defined as something.

Q2) You can! "Move" just means "change the location in space," so if your code allows you to change the Transform Position of the card object you'll be moving the object even if it doesn't interact with regular physics. You could drag and drop objects straight through objects and that would work. In most card games that's fine - for instance not being able to knock your virtual cup of coffee over is more of a feature than a bug if you're playing solitaire. Unless you're planning on making randomized game boards, you can probably get away with telling the card to "go to [specific x,y,z coordinates]" rather than figuring out detection, but if you want to learn about detection by location I recommend the "kill box" section of the Space Shooter tutorial, here: https://unity3d.com/learn/tutorials/projects/space-shooter-tutorial/boundary?playlist=17147

Q3) I don't have a handle on multiplayer mechanics yet. I don't have any insight to offer there. However, if you're buying a pack of cards from the store they'll almost certainly have a format already in place. If you want to use them, you'll be using that format.

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

141 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image 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

Issues Getting my GameObject to both Move Forward and Jump properly. 0 Answers

Question about NavMesh and Rigidbody 0 Answers

Question About NavMesh Agent and rotation 1 Answer

Problem of stuttering FPS Camera 1 Answer

Best way to pick up objects in unity? 2 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