@ -102,9 +102,8 @@ public abstract class Spatial implements Savable, Cloneable, Collidable {
* Refresh flag types
* Refresh flag types
* /
* /
protected static final int RF_TRANSFORM = 0x01 , // need light resort + combine transforms
protected static final int RF_TRANSFORM = 0x01 , // need light resort + combine transforms
RF_BOUND = 0x02 ,
RF_BOUND = 0x02 ,
RF_LIGHTLIST = 0x04 ; // changes in light lists
RF_LIGHTLIST = 0x04 ; // changes in light lists
protected CullHint cullHint = CullHint . Inherit ;
protected CullHint cullHint = CullHint . Inherit ;
/ * *
/ * *
* Spatial ' s bounding volume relative to the world .
* Spatial ' s bounding volume relative to the world .
@ -151,7 +150,7 @@ public abstract class Spatial implements Savable, Cloneable, Collidable {
refreshFlags | = RF_BOUND ;
refreshFlags | = RF_BOUND ;
}
}
/ * *
/ * *
* Constructor instantiates a new < code > Spatial < / code > object setting the
* Constructor instantiates a new < code > Spatial < / code > object setting the
* rotation , translation and scale value to defaults .
* rotation , translation and scale value to defaults .
*
*
@ -164,7 +163,6 @@ public abstract class Spatial implements Savable, Cloneable, Collidable {
this . name = name ;
this . name = name ;
}
}
/ * *
/ * *
* Indicate that the transform of this spatial has changed and that
* Indicate that the transform of this spatial has changed and that
* a refresh is required .
* a refresh is required .
@ -234,11 +232,12 @@ public abstract class Spatial implements Savable, Cloneable, Collidable {
if ( getQueueBucket ( ) = = Bucket . Gui ) {
if ( getQueueBucket ( ) = = Bucket . Gui ) {
return cam . containsGui ( getWorldBound ( ) ) ;
return cam . containsGui ( getWorldBound ( ) ) ;
} else {
} else {
int state = cam . getPlaneState ( ) ;
// int state = cam.getPlaneState();
frustrumIntersects = cam . contains ( getWorldBound ( ) ) ;
frustrumIntersects = cam . contains ( getWorldBound ( ) ) ;
cam . setPlaneState ( state ) ;
// cam.setPlaneState(state);
}
}
}
}
@ -1170,9 +1169,9 @@ public abstract class Spatial implements Savable, Cloneable, Collidable {
Savable s = userData . get ( key ) ;
Savable s = userData . get ( key ) ;
if ( s instanceof UserData ) {
if ( s instanceof UserData ) {
return ( T ) ( ( UserData ) s ) . getValue ( ) ;
return ( T ) ( ( UserData ) s ) . getValue ( ) ;
} else {
} else {
return ( T ) s ;
return ( T ) s ;
}
}
}
}