Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
Plane3d

drummer_si
Registered User
Quote
2011-05-28 18:34:17

Does anyone have a working example of creating a "Plane3d"

When I use the following basic code:

var Plane=new CL3D.Plane3d()
var point1= new CL3D.Vect3d(30.11187810133163,5.85768222282387,-57.48371887207031);
var point2= new CL3D.Vect3d(113.08439812723614,86.06821785756718,-57.48371887207031);
var point3= new CL3D.Vect3d(13.62056382848873,83.06235920409857,-147.4837188720703);
scene.getRootSceneNode().addChild(Plane);


Chrome debugger throws up the following error:
Uncaught TypeError: Object [object Object] has no method 'OnAnimate'
CL3D.SceneNode.OnAnimatecopperlicht.js:9
CL3D.Scene.doAnimatecopperlicht.js:9
CL3D.CopperLicht.draw3dScenecopperlicht.js:9
CL3D.CopperLicht.draw3DIntervalHandlercopperlicht.js:9
(anonymous function)copperlicht.js:9


Firebug for Firefox shows the following error:
j.OnAnimate is not a function
[Break On This Error] var CL3D={};CL3D.DebugOutput=function(...s.getTrianglesFromOctTree(h,e,f,a)}}};



They show these errors constantly, recursively.. Any ideas?


drummer_si
Registered User
Quote
2011-05-28 22:09:50

Ignore this post - I realise now that plane3D does not create a plane in the sense that CopperCube creates a plane

:(


niko
Moderator
Quote
2011-05-29 14:11:20

Yes, it's like vector a mathematical construct for doing collisions and thelike :)


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internation?l" (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