Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
When I Use The Drag 3D Object Node While Using Physics Simulation The Object I Drag Ingame Starts To not Colliding With Objects Etc. How To Fix that? |
||||
|
Did you try ccbUpdatePhysicsGeometry(); You might set up a behavior that's executed whenever the position of a dragged object has changed, and then immediately call abovementioned function. |
||||
|
UR THE BEST! Thank you so much it worked :D |
||||
|
when i clone the cube ingame the cloned one doesnt collide again :( |
||||
|
I remember when working with CopperLicht, I noticed clones do not inherit collision properties of the source. I managed to apply them by code, but that was only for the webGl target, as far as I remember. I doubt this works in directX or openGL exports:
In any case, you may have to dig rather deep to make clones work with collision. Or maybe I'm wrong and there's some simple solution. Did you try and see whether there's a difference between manually (in-editor) cloned meshes, and those cloned by script? |
||||
|
Oh btw, I see the above code contains "getMesh()", this doesn't work with the CC Version 6.4, that I use, and probably also not with the latest 6.6 version. But it worked in earlier versions, which is why I used an older version of copperlicht.js (you have to overwrite the one that CC exports into the copperlichtdata folder) Case you're interested, that working copperlicht.js is part of the zip download of my recent game on itch.io, search for "the ouchee island ramification". Well, at least I think one can extract it from the zip. Else let me know. But as you're using physics, they don't work in the webgl target anyway, so... no good advice here, sorry. Maybe somebody else has a good solution. Like, the real CC gurus. |
|