Zoo Guest |
Quote
|
2017-05-17 16:22:43 |
|
When you move an object with collision via the javascript api, the collision point remains at the original place and does not follow the object, leaving the collision block behind and the moved object without collision - ie you can move straight through it.
|
Zoo Guest |
Quote
|
2017-05-18 03:49:53 |
|
Woops my mistake, I was supposed to use collide when moved...didn't use it...Now the drag and drop works perfectly
|
Zoo Guest |
Quote
|
2017-05-18 14:31:45 |
|
Or just use this function on click when executing javascript and the click is nested under the node in question...Works better
http://www.ambiera.com/coppercube/doc/cnt_javascriptref.htmlccbUpdatePhysicsGeometry
|
Zoo Guest |
Quote
|
2017-05-18 14:32:30 |
|
ccbUpdatePhysicsGeometry()
Note: This function is not available in the editor.
Updates the collision geometry of the physics simulation. Call this when you modified the static geometry of the world and want the physics simulation to respect that. This only works when physics simulation is turned on and available for the current platform.
|