Skip to content

Instantly share code, notes, and snippets.

@tj
Created March 18, 2009 19:03
Show Gist options
  • Save tj/81320 to your computer and use it in GitHub Desktop.
Save tj/81320 to your computer and use it in GitHub Desktop.
// Torque Alternative Syntax
if (!isObject(FollowMouseBehavior))
%template = new BehaviorTemplate(FollowMouseBehavior);
%template.friendlyName = "...";
%template.behaviorType = "...";
%template.description = "...";
%template.addBehaviorField(flipX, "...", bool, true);
%template.addBehaviorField(followX, "...", bool, true);
%template.addBehaviorField(followX, "...", bool, true);
%template.addBehaviorField(trackingSpeed, "...", float, 15.0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment