Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorbandy
- CommentTimeOct 29th 2010
Hi,
I am trying to use addActivity(MoveEmitter) from the ThreeD package. The docs say MoveEmitter takes a Vector3D.
If I use e.g
emitter.addActivity.MoveEmitter(new Vector3D(100,100,100))
I get an error "cannot resolve a multiname reference unambiguously" referring to flash.geom.Vector3D and the Flint Vector3D.
If I use the full package reference (org.flintparticles.threeD.geom.Vector3D) as the Vector3d in the MoveEmitter, I get an error about a null object in RendererBase.as Line78.
The Particle system works though when the MoveEmitter is not used.
Is there anyway around this Vector3D conflict and is it the cause of this problem?
Thanks for any help. I have looked high and low but can't seem even to find an example of MoveEmitter being used.
Lawrence -
- CommentAuthorbandy
- CommentTimeOct 29th 2010
Just to clarify, the reason I want this MoveEmitter is I'm trying to make a cloud move across the stage (a movieclipsprite in Away3D) and rain falling from the cloud on mousedown. I want the emitter to follow the location of the cloud. Not impossible I would have thought? But for me, yes
Lawrence -
- CommentAuthorRichard
- CommentTimeNov 5th 2010
Hi
The most likely cause of a null reference error in line 78 of RendererBase would be calling renderer.addEmitter( emitter ) with a null emitter. Would you check that you have instantiated your emitter before adding it to the renderer.
1 to 3 of 3
