Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Need to a code to move the ball in directiona and in given velocity
Started by gopinpv3 Jun 25 2018 11:48 PM

2 replies to this topic

Best Answer Rob Miracle , 26 June 2018 - 11:20 AM

You can look at our CoronaCannon complete sample project here:  https://marketplace.coronalabs.com/app-templates/corona-cannon

 

There is also the sample code that comes with Corona in SampleCode/Physics called MultiPuck. There are other samples in the SampleCode as well that involves similar activities that you may find useful too.

 

Rob

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

gopinpv3

[GLOBAL: userInfoPane.html]
gopinpv3
  • Observer

  • 3 posts
  • Corona SDK

Hello, I am new to Corona SDK practicing and developing my programming skills. I want a help with below 

 

I tried to hit an object with a ball in the choice of users direction and with the required velocity.I am looking for the sample code to do that. Can someone please help with that...

 

Thanks in advance 



[TOPIC: post.html]
#2

thomas6

[GLOBAL: userInfoPane.html]
thomas6
  • Contributor

  • 827 posts
  • Corona SDK

I believe there is an Angry Birds clone game in the demo example apps. That should help. Either way, you're going to need to learn using physics with Box 2D for Corona, so start trying out some physics examples from the documentation.

 

Finally, please try not to ask too broad a question on this forum. Try out something, and if it's not doing what you expect, ask a specific question.



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,995 posts
  • Corona SDK

  Best Answer

You can look at our CoronaCannon complete sample project here:  https://marketplace.coronalabs.com/app-templates/corona-cannon

 

There is also the sample code that comes with Corona in SampleCode/Physics called MultiPuck. There are other samples in the SampleCode as well that involves similar activities that you may find useful too.

 

Rob




[topic_controls]
[/topic_controls]