1
Support / Object3D.checkForCollisionEllipsoid(Unknown Source)
« on: September 11, 2011, 03:56:46 pm »
Hello!
I splitted um my Code which created a simple Scene and a moveable character.
Before i splitted it up to more classes (like player, or scene...) the collision worked fine.
But now I get the exception you see in the title :
Object3D.checkForCollisionEllipsoid(Unknown Source)
The whole exception says:
Exception in thread "main" java.lang.NullPointerException
at com.threed.jpct.Object3D.checkForCollisionEllipsoid(Unknown Source)
at WWWGame.Game.loop(Game.java:131)
at WWWGame.Game.start(Game.java:81)
at Start.init(Start.java:30)
at Start.main(Start.java:16)
So there must be a variable in line 131 which is null... but there isn't.
Thats the line:
moveRes = szene.getPlayer().getObject().checkForCollisionEllipsoid(moveRes,
ellipsoid, ;
All variabled are defined and not null.
Any idea what the problem is?
I splitted um my Code which created a simple Scene and a moveable character.
Before i splitted it up to more classes (like player, or scene...) the collision worked fine.
But now I get the exception you see in the title :
Object3D.checkForCollisionEllipsoid(Unknown Source)
The whole exception says:
Exception in thread "main" java.lang.NullPointerException
at com.threed.jpct.Object3D.checkForCollisionEllipsoid(Unknown Source)
at WWWGame.Game.loop(Game.java:131)
at WWWGame.Game.start(Game.java:81)
at Start.init(Start.java:30)
at Start.main(Start.java:16)
So there must be a variable in line 131 which is null... but there isn't.
Thats the line:
moveRes = szene.getPlayer().getObject().checkForCollisionEllipsoid(moveRes,
ellipsoid, ;
All variabled are defined and not null.
Any idea what the problem is?