File tree Expand file tree Collapse file tree
TutorialApps/src/main/java/jme3utilities/tutorial Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,6 +251,7 @@ private PhysicsRigidBody addBall() {
251251
252252 Material yellowMaterial = createLitMaterial (1f , 1f , 0f );
253253 result .setDebugMaterial (yellowMaterial );
254+ result .setDebugMeshNormals (MeshNormals .Sphere );
254255
255256 return result ;
256257 }
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5555import com .jme3 .shadow .DirectionalLightShadowRenderer ;
5656import com .jme3 .shadow .EdgeFilteringMode ;
5757import com .jme3 .system .AppSettings ;
58+ import jme3utilities .MeshNormals ;
5859
5960/**
6061 * A simple example of a PhysicsJoint with a motor.
@@ -179,6 +180,7 @@ private PhysicsRigidBody addDoor() {
179180
180181 Material yellowMaterial = createLitMaterial (1f , 1f , 0f );
181182 result .setDebugMaterial (yellowMaterial );
183+ result .setDebugMeshNormals (MeshNormals .Facet );
182184
183185 return result ;
184186 }
@@ -205,6 +207,7 @@ private PhysicsRigidBody addFrame() {
205207
206208 Material greenMaterial = createLitMaterial (0f , 1f , 0f );
207209 result .setDebugMaterial (greenMaterial );
210+ result .setDebugMeshNormals (MeshNormals .Smooth );
208211
209212 return result ;
210213 }
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5555import com .jme3 .shadow .DirectionalLightShadowRenderer ;
5656import com .jme3 .shadow .EdgeFilteringMode ;
5757import com .jme3 .system .AppSettings ;
58+ import jme3utilities .MeshNormals ;
5859
5960/**
6061 * A simple example of a PhysicsJoint with a servo.
@@ -199,6 +200,7 @@ private PhysicsRigidBody addDoor() {
199200
200201 Material yellowMaterial = createLitMaterial (1f , 1f , 0f );
201202 result .setDebugMaterial (yellowMaterial );
203+ result .setDebugMeshNormals (MeshNormals .Facet );
202204
203205 return result ;
204206 }
@@ -225,6 +227,7 @@ private PhysicsRigidBody addFrame() {
225227
226228 Material greenMaterial = createLitMaterial (0f , 1f , 0f );
227229 result .setDebugMaterial (greenMaterial );
230+ result .setDebugMeshNormals (MeshNormals .Smooth );
228231
229232 return result ;
230233 }
You can’t perform that action at this time.
0 commit comments