Enigma
Insane
What the fuck is this?
Posts: 1,686
|
Post by Enigma on Apr 3, 2014 10:41:02 GMT -5
Actually, I searched Neo rio in google translate and neo meant new and rio meant river... Maybe neo was not portugal but well, it actually means New River... And modelling things is the easiest part... Unity 3D is really complicated.
|
|
Enigma
Insane
What the fuck is this?
Posts: 1,686
|
Post by Enigma on Jul 28, 2014 23:16:43 GMT -5
Biggest update yet!!! I've finally started to make the game into Unity 3D! Today was the first day of work into the project! I started by creating a basic flat area with a cube with an angle and a ramp. I then made a basic hover bike shape by arranging squares and cylinders to make everything. I made headlights and a jet engine on the back with particles. I then continued by coding basic left & right and forward & backward controls, then adjusted the drag, speed, weight and tested it. I could move around but I bounced off and started flying and spinning around uncontrollably whenever I hit the ramp or the cube at a too high speed. I imported a custom hover bike and my track Spirit Canyon into Unity 3D. I made some changes to gravity and some other settings and here we go! I still need to make the bike rotate by pressing keys and make it boost by another key. Also, it still kinda bounces off and drives into the air when I hit a ramp at a certain angle... I need to fix this. If any of you could help me with that, I would be really thankful and it would save me a lot of time. Well if not it'll just be longer to fix. Well, here is the video preview below.
|
|
Enigma
Insane
What the fuck is this?
Posts: 1,686
|
Post by Enigma on Jul 29, 2014 17:34:23 GMT -5
EDIT - Added download links for the build 1 of Jet Moto Galaxy!
|
|
|
Post by toxik87 on Aug 1, 2014 18:36:18 GMT -5
That's Cool dude, i'm absolutely terrible with computers, so i'm impressed that 15 year old could do this much haha
|
|
Enigma
Insane
What the fuck is this?
Posts: 1,686
|
Post by Enigma on Aug 2, 2014 2:32:50 GMT -5
That's Cool dude, i'm absolutely terrible with computers, so i'm impressed that 15 year old could do this much haha Technically I'm still 14... But I'll get 15 in August so, that's pretty much it. Anyway, thank's! But I still gotta figure the biggest problem : How to make the bike stop from being drive-able in mid-air... Well, I'll probably figure it out. If you want there's a download for a test build on the first page.
|
|
|
Post by Dark Ermac on Aug 2, 2014 21:08:51 GMT -5
That's Cool dude, i'm absolutely terrible with computers, so i'm impressed that 15 year old could do this much haha Technically I'm still 14... But I'll get 15 in August so, that's pretty much it. Anyway, thank's! But I still gotta figure the biggest problem : How to make the bike stop from being drive-able in mid-air... Well, I'll probably figure it out. If you want there's a download for a test build on the first page. Try something like this: void DetectFlying() { Ray nRay = new Ray(transform.position,-upDir); RaycastHit hit; if(Physics.Raycast (nRay, out hit,2.5f)) { if(hit.collider.gameObject.tag != "floor") {isAir = true;} } else {isAir = true;} }
void DetectLanding(Collision Target) { float angSurf = GetAngle(Target.contacts[0].normal); if(angSurf-.0009f <= 3*Mathf.PI/4f && angSurf+.0009f >= Mathf.PI/4f) {isAir = false;} }
upDir is the upwards pointing direction for the player's vehicle isAir is the bool that determines whether or not the player is in the air DetectFlying uses a raycast below the vehicle to determine if there is any ground directly beneath the vehicle. The 2.5f value should be replaced by the diameter of the capsule collider attached to the vehicle + EPS, where EPS is some arbitrarily small number. To make this even more effective you should probably project a raycast towards the lower front, back, and sides of the vehicle as well. This function should be called each frame, as long as the player is considered to be on the ground. Heck, this could probably be modified further to create a function that determines when the player is crashing, by projecting the reversed versions of these raycasts. DetectLanding takes the collision between the player and an object and determines if the slope of the surface is shallow enough to allow the vehicle to land on it. This should only be called when the bike collides with a surface.
|
|
Enigma
Insane
What the fuck is this?
Posts: 1,686
|
Post by Enigma on Aug 3, 2014 10:54:57 GMT -5
I'll definitely try that later today! Thank's a lot! You are way more experienced than me! XD I can't do it right now because my brother's on the computer, well, I'll tell you what's up when I try it!
|
|
Enigma
Insane
What the fuck is this?
Posts: 1,686
|
Post by Enigma on Aug 3, 2014 11:45:29 GMT -5
When I try to add the code to my code... It gives me a thousand errors... :/ Below is my code :
|
|
|
Post by Dark Ermac on Aug 4, 2014 14:21:26 GMT -5
Oh, you're using UnityScript. My code's written in C#.
That being said, I don't expect you to copy it exactly the way I have it written. Just write it in your own way and it should work.
|
|
Enigma
Insane
What the fuck is this?
Posts: 1,686
|
Post by Enigma on Aug 4, 2014 14:32:35 GMT -5
Ok. It just says almost all the variables you use aren't correct and don't exist. I'll try messing around testing different lines of code.
|
|
|
Post by Dark Ermac on Aug 5, 2014 15:58:16 GMT -5
That's because you need to change each instance of "type x" to "var x : type". Also, that code snippet doesn't have the variable declarations for "var upDir : Vector3" nor "var isAir : bool", which should be added to your other var declarations.
|
|
Enigma
Insane
What the fuck is this?
Posts: 1,686
|
Post by Enigma on Aug 5, 2014 16:23:07 GMT -5
TURNS OUT MY ASSHOLE OF LITTLE BROTHER JUST DELETED EVERYTHING IN THE ASSET FOLDER INCLUDING ALL MY JMG FILES SO THAT MEANS I GOTTA START ALL OVER AGAIN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! FUCKING SHIT!!!!
Edit : I found backup files...
|
|
|
Post by Dark Ermac on Aug 6, 2014 13:27:32 GMT -5
Make yourself a Google Drive folder and put everything in it. It really helps.
|
|
Enigma
Insane
What the fuck is this?
Posts: 1,686
|
Post by Enigma on Aug 6, 2014 14:00:02 GMT -5
Well I got OneDrive with Windows 8, I'll try putting everything in there and see if it works.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 7, 2014 12:09:07 GMT -5
Flash drives are nice too.
|
|