[BEHAVIOR] Chipmunk Physics

Post your completed addons to share with the community

Post » Fri Apr 24, 2015 7:08 pm

Message: heal is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
R0J0hound wrote:@heal
This seems to do the trick:


R0J0hound, thank you very much for the help! Awesome :D
B
10
S
2
Posts: 10
Reputation: 602

Post » Fri Apr 24, 2015 7:41 pm

@R0J0hound I need your help. After jointing via piviot joint three sprites like at the screenshot below I have many collisions beetwen sprites (I suppose) and they are "flying" away. What's the best way to join them together? Thx in advance

Image

btw, you have made great plugin
B
4
Posts: 4
Reputation: 208

Post » Fri Apr 24, 2015 9:09 pm

@Valex
You can disable the collisions between the joined objects by giving them the same non-zero collision group.
B
92
S
32
G
110
Posts: 5,298
Reputation: 71,507

Post » Fri Apr 24, 2015 9:48 pm

R0J0hound wrote:@Valex
You can disable the collisions between the joined objects by giving them the same non-zero collision group.


it works, but I have to save collisions between them because it's bridge beam
B
4
Posts: 4
Reputation: 208

Post » Fri Apr 24, 2015 10:06 pm

@Valex
Other objects can still collide with them, but you still need to disable collisions between the beams.
https://dl.dropboxusercontent.com/u/542 ... group.capx

The only other option would be to change the location where you add the joint so that the beams aren't touching.
B
92
S
32
G
110
Posts: 5,298
Reputation: 71,507

Post » Fri Apr 24, 2015 11:50 pm

@R0J0hound, awesome, thank you! I converted most of my game to Chipmunk, which, so far on my laptop, runs with less hiccups than the current C2 physics engine(s). Next stop is to see how it performs on my phone!
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,826

Post » Sat Apr 25, 2015 5:39 pm

@R0J0hound

The minifier still doesnt work for me. Just a black screen. I am also using Paster in the same project, could it be that ?

Thanks
B
48
S
16
G
9
Posts: 1,098
Reputation: 11,197

Post » Sat Apr 25, 2015 5:47 pm

@sponghammer
Paster seems to work with the minifier.

What does the browser console say? You can open it with ctrl+shift+j.
B
92
S
32
G
110
Posts: 5,298
Reputation: 71,507

Post » Sat Apr 25, 2015 5:50 pm

I am exporting to NW.js. its not an HTML project.

Just tried it as a web export. the Chrome console says:

Document was loaded from Application Cache with manifest http://www.mailtree.co.uk/temp/offline.appcache
(index):1 Application Cache Checking event
(index):118 Uncaught (in promise) DOMException: Only secure origins are allowed. http://goo.gl/lq4gCo {message: "Only secure origins are allowed. http://goo.gl/lq4gCo", name: "NotSupportedError", code: 9, INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2…}(anonymous function) @ (index):118
(index):1 Application Cache NoUpdate event
c2runtime.js:94 Uncaught (in promise) DOMException: A call to lockOrientation() or unlockOrientation() canceled this call. {message: "A call to lockOrientation() or unlockOrientation() canceled this call.", name: "AbortError", code: 20, INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2…}l.qr @ c2runtime.js:94l.xv @ c2runtime.js:89l.Uj @ c2runtime.js:103l.Cw.Cg.a.onload @ c2runtime.js:81
www.mailtree.co.uk/:1 Uncaught (in promise) DOMException: lockOrientation() is not available on this device. {message: "lockOrientation() is not available on this device.", name: "NotSupportedError", code: 9, INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2…}
c2runtime.js:408 Uncaught ReferenceError: tri is not defined

No idea what any of that means or if its relevent. :)
B
48
S
16
G
9
Posts: 1,098
Reputation: 11,197

Post » Sat Apr 25, 2015 6:01 pm

Updated the web version without minify and it works ok there now.

Just tried it with webGLoff and minify on. Still no joy :(
B
48
S
16
G
9
Posts: 1,098
Reputation: 11,197

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: gonzdevour, grodrigues and 3 guests