physics wip

This commit is contained in:
2015-07-09 00:59:21 +06:00
parent 1b7a7e115c
commit d26c7e4a12
17 changed files with 394 additions and 102 deletions

View File

@@ -7,7 +7,7 @@ namespace IsoTools { namespace Examples {
var iso_object = GetComponent<IsoObject>();
var iso_rigidbody = GetComponent<IsoRigidbody>();
if ( iso_rigidbody ) {
iso_rigidbody.RealRigidbody.velocity = dir;
iso_rigidbody.Velocity = dir;
} else if ( iso_object) {
iso_object.Position += dir * Time.deltaTime;
}