@@ -22,6 +22,7 @@ of this software and associated documentation files (the "Software"), to deal
22
22
package com .github .stephengold .joltjni ;
23
23
24
24
import com .github .stephengold .joltjni .readonly .ConstCollisionGroup ;
25
+ import com .github .stephengold .joltjni .readonly .ConstGroupFilter ;
25
26
import com .github .stephengold .joltjni .template .Ref ;
26
27
import com .github .stephengold .joltjni .template .RefTarget ;
27
28
@@ -30,7 +31,9 @@ of this software and associated documentation files (the "Software"), to deal
30
31
*
31
32
* @author Stephen Gold [email protected]
32
33
*/
33
- public class GroupFilter extends SerializableObject implements RefTarget {
34
+ public class GroupFilter
35
+ extends SerializableObject
36
+ implements ConstGroupFilter , RefTarget {
34
37
// *************************************************************************
35
38
// constructors
36
39
@@ -50,6 +53,8 @@ public class GroupFilter extends SerializableObject implements RefTarget {
50
53
GroupFilter (long filterVa ) {
51
54
super (filterVa );
52
55
}
56
+ // *************************************************************************
57
+ // ConstGroupFilter methods
53
58
54
59
/**
55
60
* Test whether the specified groups can collide. The filter is unaffected.
@@ -58,6 +63,7 @@ public class GroupFilter extends SerializableObject implements RefTarget {
58
63
* @param group2 the 2nd group (not null, unaffected)
59
64
* @return {@code true} if they can collide, otherwise {@code false}
60
65
*/
66
+ @ Override
61
67
public boolean canCollide (
62
68
ConstCollisionGroup group1 , ConstCollisionGroup group2 ) {
63
69
long filterVa = va ();
0 commit comments