Changeset 429:46ecb2c4cb61 for nagslang


Ignore:
Timestamp:
Sep 7, 2013, 11:39:10 AM (7 years ago)
Author:
davidsharpe@…
Branch:
default
Message:

Special relativistic gravities again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r427 r429  
    664664    def apply_effect(self, object_to_move):
    665665        movement = self.physicser.position - object_to_move.physicser.position
    666         force = self.force * (1 - (self._radius / movement.length))
    667         movement.length = force
     666        local_force = self.force * (1 - (self._radius / movement.length))
     667        movement.length = local_force
    668668        object_to_move.environmental_movement(-movement)
    669669
Note: See TracChangeset for help on using the changeset viewer.