Aerial Assist 3D Game Simulation

https://github.com/rcahoon/AerialAssistSim

The code is hopefully pretty self-documenting, but I haven’t had time to comment it (kinda trying to build a robot at the moment :rolleyes:). Feel free to PM me with questions

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.

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/AerialAssistSim/blob/master/Assets/Launcher.cs

Let me know if you have any more questions

Thank you very much.

Huge feature, but somehow allow importing custom CAD files.

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.

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.

Have you made one for Recycle Rush?

Here you go.

Lol

Someone made this

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





Do you have a link to it?

The Unity Web Player isn’t working on it.

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:

FWIW, it seems to be working in FireFox as well.

Sorry, no. New team + new job and I didn’t have time. Hopefully next year :slight_smile: Thanks to the Rembrandts for making one.

It’d be really cool to see the best robots from 2014 in this simulation and have AIs run them and see how perfectly the game could be played.

Does anyone know how to change the joystick axis’s for the controls?

There’s no way to do it in the web version. Use the downloaded version; click the Input tab on the initial splash window.