Unity 3d question
Members - Reputation: 122
Posted 22 May 2012 - 09:07 AM
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?
if you need more info just ask
Crossbones+ - Reputation: 2455
Posted 22 May 2012 - 07:28 PM
- 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.
Members - Reputation: 310
Posted 23 May 2012 - 01:16 AM
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.
Homepage (Under Construction)
Check my profile for funny D&D/WH FRP quotes
Members - Reputation: 122
Posted 23 May 2012 - 07:30 AM
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?