|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
||||
|
||||
|
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.
|
|
#17
|
||||
|
||||
|
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 |
|
#18
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Thank you very much.
|
|
#19
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Huge feature, but somehow allow importing custom CAD files.
|
|
#20
|
||||
|
||||
|
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.
|
|
#21
|
||||
|
||||
|
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.
|
|
#22
|
||||
|
||||
|
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. |
|
#23
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Swerve 4 lyfe bro. If you can do this, that would be amazing.
|
|
#24
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Have you made one for Recycle Rush?
|
|
#25
|
|||||
|
|||||
|
Re: Aerial Assist 3D Game Simulation
|
|
#26
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Quote:
|
|
#27
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Last edited by Maximillian : 30-04-2015 at 21:57. |
|
#28
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Quote:
|
|
#29
|
||||
|
||||
|
Re: Aerial Assist 3D Game Simulation
Quote:
|
|
#30
|
||||
|
||||
|
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. ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|