-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCollider.java
More file actions
143 lines (120 loc) · 3.03 KB
/
Collider.java
File metadata and controls
143 lines (120 loc) · 3.03 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
package JAVARuntime;
import java.util.ArrayList;
import java.util.List;
//
/**
* @Author Lucas Leandro (ITsMagic Founder)
*/
@ClassCategory(cat ={"Physics","Components"})
public final class Collider extends Component {
public enum Shape {
Box,
Sphere,
Capsule,
Model,
ConvexModel,
Decomposition
}
//
//
public Collider() {
//
super();
//
//
}
@MethodArgs({"shape"})
public Collider(Shape type) {
//
super();
//
//
}
@JRDoc_EN("Returns the shape type of the collider.")
@JRDoc_PT("Retorna o tipo de forma do collider.")
public Shape getShape(){
//
return null;
//
//
}
@JRDoc_EN("Sets the shape type of the collider.")
@JRDoc_PT("Define o tipo de forma do collider.")
@MethodArgs({"value"})
public void setShape(Shape value){
//
}
@JRDoc_EN("Sets the vertex file for the collider.")
@JRDoc_PT("Define o arquivo do vertex para o collider.")
@HideGetSet
@MethodArgs({"vertexFile"})
public void setVertexFile(VertexFile pFile){
//
}
@JRDoc_EN("Returns the collider vertex.")
@JRDoc_PT("Retorna o vertex do collider.")
@HideGetSet
public Vertex getVertex(){
//
return null;
//
//
}
@JRDoc_EN("Sets the vertex of the collider.")
@JRDoc_PT("Define o vertex do collider.")
@HideGetSet
@MethodArgs({"vertex"})
public void setVertex(Vertex vertex){
//
}
@JRDoc_EN("Sets the convex vertex of the collider.")
@JRDoc_PT("Define o vertex convexo do collider.")
@HideGetSet
@MethodArgs({"vertex"})
public void setConvexVertex(Vertex vertex){
//
}
@JRDoc_EN("Checks if this object is colliding with an object with the specified name.")
@JRDoc_PT("Verifica se este objeto está colidindo com um objeto com o nome especificado.")
@MethodArgs({"objectName"})
public boolean colliderWithName(String objectName){
//
return false;
//
//
}
@JRDoc_EN("Checks if this object is colliding with anything.")
@JRDoc_PT("Verifica se este objeto está colidindo com algo.")
public boolean isColliding(){
//
return false;
//
//
}
@JRDoc_EN("Returns a list of all current collisions.")
@JRDoc_PT("Retorna uma lista de todas as colisões atuais.")
public List<Collision> getCollisionList(){
//
return null;
//
//
}
@JRDoc_EN("Returns the number of current collisions.")
@JRDoc_PT("Retorna o número de colisões atuais.")
public int getCollisionsCount(){
//
return 0;
//
//
}
@JRDoc_EN("Returns the Collision at the specified index.")
@JRDoc_PT("Retorna a colisão no índice especificado.")
@MethodArgs({"idx"})
public Collision getCollisionAt(int idx){
//
return null;
//
//
}
//
}