|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Quote:
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 ). Feel free to PM me with questions |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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 |
|
#4
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Thank you very much.
|
|
#5
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Huge feature, but somehow allow importing custom CAD files.
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
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.
|
|
#8
|
||||
|
||||
|
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. |
|
#9
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Swerve 4 lyfe bro. If you can do this, that would be amazing.
|
|
#10
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Have you made one for Recycle Rush?
|
|
#11
|
|||||
|
|||||
|
Re: Aerial Assist 3D Game Simulation
|
|
#12
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Quote:
|
|
#13
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Last edited by Maximillian : 04-30-2015 at 09:57 PM. |
|
#14
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Quote:
|
|
#15
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|