Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
Drag Object Behavior

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.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact