Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Collision Calculator
Started by Michael W. Sep 17 2015 05:04 PM

2 replies to this topic
release lua
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Michael W.

[GLOBAL: userInfoPane.html]
Michael W.
  • Contributor

  • 276 posts
  • Alumni

Collision Calculator

by Roaming Gamer


View and activate on the Corona Store


This plugin allows users to generate a calculator 'object' that then allows them to easily configure collisions using names instead of numbers.

It does this by (internally) assigning numbers for each 'collider name' and then by auto-calculating filter values based one what objects the user says collide with each other.

In short, this plugin turns a semi-arduous set of calculations into a small amount of easily read and configured code.

Documentation

[TOPIC: post.html]
#2

khanh.dq

[GLOBAL: userInfoPane.html]
khanh.dq
  • Contributor

  • 264 posts
  • Corona SDK

 Hi,

 

 At first, thank you and Roaming Gamer for this plugin.

 

 @Roaming Gamer: do you miss something in your document? In the "collidesWith" function, your doc shows:

-- 'redBall' collides with 'block' and 'greenBall'
 myCC:collidesWith( "redBall", { "block", "greenBall" } )

But in the sample:

myCC:collidesWith( "redBall", "block", "greenBall"  )

 So does it mean they will colide each other or something else?



[TOPIC: post.html]
#3

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,585 posts
  • Corona SDK

@Khanh.dq

 

Many apologies!  The 'full example' in the docs needed to be updated.  I have just done so.

 

Also you can get the code in the example here:

 

http://github.com/roaminggamer/RG_FreeStuff/raw/master/myPluginSamples/cc/usage.zip

 

This is for those who don't want to cut-copy-paste (like me).

 

Thanks for catching that!


Edited by roaminggamer, 23 September 2015 - 09:28 AM.



[topic_controls]
[/topic_controls]