Jump to content

  • Log In with Google      Sign In   
  • Create Account

Unity 3d question


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 Cayliff   Members   -  Reputation: 122

Like
0Likes
Like

Posted 22 May 2012 - 09:07 AM

I am creating a game and I am wanting to use Unity 3d. It will be a fast paced 3d space fight/flight game taking place in an astroroid field.

In unity3d can I make astroroids that has caves tunnels through them, and also have collision detection on them with space craft and with other astroroids?

Thanks

if you need more info just ask

Sponsor:

#2 jefferytitan   Crossbones+   -  Reputation: 2242

Like
1Likes
Like

Posted 22 May 2012 - 07:28 PM

Hi Cayliff. I haven't tried that exact thing with Unity, but I will tell you what I know:
- Yes, you can make asteroids with tunnels through them. You would have to model them using a normal 3D modelling program.
- Yes, you can allow the ship to collide with them (inside and outside). Note that collisions with complex meshes can be a little unreliable. If I recall correctly, Unity's Collider system works best with convex shapes. So you could create a set of convex Colliders which overall add up to the complex shape of the asteroid with tunnels through it.
- Asteroids could collide with each other, but I suspect it would be more tricky because of the odd shapes. It also depends whether you want the asteroids to break up when they collide, which would required custom modelling and perhaps scripting, e.g. making one asteroid out of a bunch of models connected with Joints which can break when hit hard. Or manually destroying the asteroids and instantiating new "blown apart" objects.
- Note that to allow collisions you need a RigidBody and a Collider. A RigidBody is affected by physics, a Collider is something that it can hit. An object may have both.
- Standard "downwards" gravity can be turned off. If you want your own outer space gravity (e.g. asteroids attracting each other) you can manually calculate it and add forces to each RigidBody, but it would get very slow if you have too many objects, because every object can affect every other object.

#3 Zethariel   Members   -  Reputation: 310

Like
1Likes
Like

Posted 23 May 2012 - 01:16 AM

Unity has its own Mesh Collider that mimics the shape of the mesh and changes that into a collider. Works fine, but as said, convex shapes are better for large objects.

Truth be told, you can do anything with most Game Engines -- the monumental question is usually "How?". With Unity that question can be answered via the helpfull forum and robust reference pages. Still, some questions are tougher than others, and whether your game will work or not depends on your experience, the design itself (clever design will not bump against limitations while still being awesome) and the dedication you put into your work.
Disclaimer: Each my post is intended as an attempt of helping and/or brining some meaningfull insight to the topic at hand. Due to my nature, my good intentions will not always be plainly visible. I apologise in advance and assure I mean no harm and do not intend to insult anyone, unless stated otherwise

Homepage (Under Construction)

Check my profile for funny D&D/WH FRP quotes :)

#4 Cayliff   Members   -  Reputation: 122

Like
0Likes
Like

Posted 23 May 2012 - 07:30 AM

Thanks for the replies.

The game premise is this...

It is the year 3019 and we have used all the metal resources on earth. To get the resources earth needs we had to look somewhere else. So we looked at the astroroid field to get the resources we need. The two major corporations that mines the astroroid fiels is the Malon Corp and the Ditrix Corp and they fight to control the astroroid field. Since its not on earth there is no rules or laws. Each corperation has decided to build a fleet of warships to fight against the other corporation. This fight goes on until they find out they are not alone. and they decide to fight together not just to protect the astroroid field but there homes on earth.

This takes place between the orbits of mars and jupiter and arround boths planets and there moons

what do yall think of this story line?

#5 dAND3h   Members   -  Reputation: 214

Like
0Likes
Like

Posted 26 May 2012 - 12:59 PM

I think the story is unfinished !




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS