Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Aerial Assist 3D Game Simulation (http://www.chiefdelphi.com/forums/showthread.php?t=124340)

vladtheimpaled 16-09-2014 18:44

Re: Aerial Assist 3D Game Simulation
 
I'm working on my own simulation with Unity in the free version. I was wondering how you got the ball to shoot so accurately. I made the ball rotate with my robot but that still misfires sometimes. Was the shooting done through animation, or was it some specific code? Also did you use JavaScript, c# or Boo just for my curiosity.

RyanCahoon 16-09-2014 19:31

Re: Aerial Assist 3D Game Simulation
 
Hi Vlad,
I used C#. My project is posted at https://github.com/rcahoon/AerialAssistSim. Feel free to use as much of it as you want.

I had the robots carry the balls using kinematics (updated transform.position on every frame) but the shooting was done using the physics engine - I added an impulse-type force. Check out https://github.com/rcahoon/AerialAss...ts/Launcher.cs

Let me know if you have any more questions

vladtheimpaled 16-09-2014 19:52

Re: Aerial Assist 3D Game Simulation
 
Thank you very much.

BBray_T1296 16-09-2014 20:48

Re: Aerial Assist 3D Game Simulation
 
Huge feature, but somehow allow importing custom CAD files.

vladtheimpaled 17-09-2014 06:50

Re: Aerial Assist 3D Game Simulation
 
Did you use the launcher script on the blue ball, or did you somehow use it on the robot? What I did was put my launch script on the blue ball and moved it with the bot and then shot by using addrelativeforce to te ball.

RyanCahoon 17-09-2014 14:43

Re: Aerial Assist 3D Game Simulation
 
Quote:

Originally Posted by vladtheimpaled (Post 1400355)
Did you use the launcher script on the blue ball, or did you somehow use it on the robot? What I did was put my launch script on the blue ball and moved it with the bot and then shot by using addrelativeforce to te ball.

I attached the launcher script to the robot because that made made more semantic sense to me, but I don't think it makes a lot of difference. In either case, I think you want AddForce rather than AddRelativeForce because the direction of the force on the ball is dictated by the orientation of the robot, not the orientation of the ball.

cjl2625 17-09-2014 15:57

Re: Aerial Assist 3D Game Simulation
 
Hmm, maybe I'll fork this and add swerve drive robots.
I already made a 2D swerve game that I can borrow code from.

asid61 19-09-2014 02:07

Re: Aerial Assist 3D Game Simulation
 
Quote:

Originally Posted by cjl2625 (Post 1400422)
Hmm, maybe I'll fork this and add swerve drive robots.
I already made a 2D swerve game that I can borrow code from.

Swerve 4 lyfe bro. If you can do this, that would be amazing.

WillNess 30-04-2015 17:32

Re: Aerial Assist 3D Game Simulation
 
Have you made one for Recycle Rush?

Jared Russell 30-04-2015 17:37

Re: Aerial Assist 3D Game Simulation
 
Quote:

Originally Posted by WillNess (Post 1479018)
Have you made one for Recycle Rush?

Here you go.

WillNess 30-04-2015 17:44

Re: Aerial Assist 3D Game Simulation
 
Quote:

Originally Posted by Jared Russell (Post 1479020)

Lol

Maximillian 30-04-2015 17:56

Re: Aerial Assist 3D Game Simulation
 
1 Attachment(s)
Quote:

Originally Posted by WillNess (Post 1479018)
Have you made one for Recycle Rush?

Someone made this

http://xantaz.netne.net/FRC2015game/WebFRC2015.html

WillNess 30-04-2015 21:49

Re: Aerial Assist 3D Game Simulation
 
Quote:

Originally Posted by Maximillian (Post 1479026)

Do you have a link to it?

asid61 30-04-2015 22:06

Re: Aerial Assist 3D Game Simulation
 
Quote:

Originally Posted by Maximillian (Post 1479026)

The Unity Web Player isn't working on it.

Darkseer54 30-04-2015 22:09

Re: Aerial Assist 3D Game Simulation
 
Works in IE, but not chrome.
No idea why... but I had heard something about unity not working in chrome anymore or something like that. :confused:


All times are GMT -5. The time now is 19:46.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi