Demo entry 3447753

Objetos

   

Submitted by anonymous on Dec 30, 2015 at 10:35
Language: Python 3. Code size: 301 Bytes.

from bge import logic as g
c = g.getCurrentController()
s = c.sensors['s']
s2 = c.sensors['s2']
o = c.owner # El objeto al que está conectado el controlador('Torus')


if s.positive:
    o.suspendDynamics() #Deshabilitar Dinámicas
if s2.positive:
    o.restoreDynamics() #Habilitar Dinámicas

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).