-
Notifications
You must be signed in to change notification settings - Fork 0
/
RayIntersection.py
50 lines (37 loc) · 1.46 KB
/
RayIntersection.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
class RayIntersection:
def __init__(self, handle=None):
if handle is None:
self.swerveHandle = self.create()
Engine.addJavaPeer(self.swerveHandle, self)
else:
self.swerveHandle = handle
@staticmethod
def create():
# Simulating the native create() method
return Engine.createRayIntersection()
def finalize(self):
# Simulating the native finalize() method
pass
def getDistance(self):
return Engine.getDistance(self.swerveHandle)
def getIntersected(self):
return Engine.instantiateJavaPeer(self.getIntersectedImpl())
def getIntersectedImpl(self):
return Engine.getIntersectedImpl(self.swerveHandle)
def getSubmeshIndex(self):
return Engine.getSubmeshIndex(self.swerveHandle)
def getNormalX(self):
return Engine.getNormalX(self.swerveHandle)
def getNormalY(self):
return Engine.getNormalY(self.swerveHandle)
def getNormalZ(self):
return Engine.getNormalZ(self.swerveHandle)
def getTextureS(self, paramInt):
return Engine.getTextureS(self.swerveHandle, paramInt)
def getTextureT(self, paramInt):
return Engine.getTextureT(self.swerveHandle, paramInt)
def getRay(self, paramArrayOffloat):
Engine.getRay(self.swerveHandle, paramArrayOffloat)
@staticmethod
def cacheFID():
Engine.cacheFID(RayIntersection)