Procházet zdrojové kódy

Update the physics scene

Panagiotis Christopoulos Charitos před 6 roky
rodič
revize
62f339d964

binární
samples/physics_playground/assets/physics_playground.blend


+ 5 - 2
samples/physics_playground/assets/scene.lua

@@ -14,9 +14,12 @@ trf:setRotation(rot)
 trf:setScale(1)
 node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
 
-node = scene:newReflectionProbeNode("reflprobe1", Vec4.new(-2.65221, -3.25716, -11.7323, 0), Vec4.new(2.65221, 3.25716, 11.7324, 0))
+node = scene:newGlobalIlluminationProbeNode("giprobe0")
+comp = node:getSceneNodeBase():getGlobalIlluminationProbeComponent()
+comp:setBoundingBox(Vec4.new(-128.498, -128.498, -128.498, 0), Vec4.new(128.498, 128.498, 128.498, 0))
+comp:setCellSize(32)
 trf = Transform.new()
-trf:setOrigin(Vec4.new(39.81, 2.89296, 3.00294, 0))
+trf:setOrigin(Vec4.new(-0.0683718, 9.1926, -0.126609, 0))
 rot = Mat3x4.new()
 rot:setAll(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0)
 trf:setRotation(rot)