#!/usr/bin/perl
# When mass changes the physics object needs to be informed.
# Code that is very critical path can access the _mass field directly
# instead of bothering with this method.
#use Mooix::Thing;
run sub {
	my $this=shift;
	
	$this->physics->changemass(
		object => $this,
		delta => ($_[0] - $this->_mass)
	) if @_;

	return $this->_mass;
}
