Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
This is a small engine integration "cannon.js" to web.gl What you see in the example are physical 3D in real time. Form of integration: Plugin 1. Make World Vitual physics to CopperCube 2. Add items to interact in. a. You can add new items in real time. b.- RAGDOLLS can generate complex collisiones. This plugin can be used webGl aplications . (can be ported to .exe, mac etc....) Link for see the example- New link 2022 https://jaime.zegpi.cl/lab/coppe... |
||||
|
Now... how i can get euler angle from quartenion???? Any idea.. Or better , how to add a quartenion values to coppercube? |
||||
|
Nice! But it doesn't support collisions with arbitrary polygon soups, meaning 3D worlds, right? For convertions from and to euler values, see this class here, it can do both: http://www.ambiera.com/copperlic... |
||||
|
Hi niko. "But it doesn't support collisions with arbitrary polygon soups, meaning 3D worlds, right?" Nup.. for that i play using ccb collision, but they have a funny bouncing effect . In others engines you can get the collision angle in ccb i don't know how get this values... :'( Any "example" how add quartenion values to a object in ccb.. pliiiiiiis??? :) ---------------- UPDATE ------------ float Quaternion::getPitch() { return atan2(2*(y*z + w*x), w*w - x*x - y*y + z*z); } float Quaternion::getYaw() { return asin(-2*(x*z - w*y)); } float Quaternion::getRoll() { return atan2(2*(x*y + w*z), w*w + x*x - y*y - z*z); } NEW DEMO https://jaime.zegpi.cl/lab/coppe... Now i can walk into terrain detecting collision |
||||
|
WOW, nice job...did you think to release this plugin? |
||||
|
thanks bob.. First i need make a better terrain detector, i can get topology of terrain, but i like add more complex poligon collisions. And i try to get more efficient fps in android target |
||||
|
Anyone got a backup version of this plugin? Thanks jaimezegpi wrote:
This is a small engine integration "cannon.js" to web.gl What you see in the example are physical 3D in real time. Form of integration: Plugin 1. Make World Vitual physics to CopperCube 2. Add items to interact in. a. You can add new items in real time. b.- RAGDOLLS can generate complex collisiones. This plugin can be used webGl aplications . (can be ported to .exe, mac etc....) Link for see the example- http://www.brainxcode.cl/brain/3... |
||||
|
The link to the example is broken, I'm getting a "404 Not Found". |
||||
|
https://jaime.zegpi.cl/lab/coppe... |
||||
|
@jaimezegpi - thanks!!! this is awesome. I'm trying to add these commands on my bullet object. But for some reason it won't "clone" the physics effect. Anything you can suggest I could do to get this working? I've also tried to get a parent/child constraint relationship by simple drag-dropping. But it looks like the constraint is not cloned. Can you give me hint what to look at to get this up running - this is really major and your code should be part of the CCB! Again, thanks! |
||||
|
PS: Basically I'm trying to build something similar (speaking in terms of physics) like Colin built there: https://www.youtube.com/watch?ti... @in 30 second |
|