public void renderUpdate(ref DrawBuffer draw_buffer, DrawBuffer.Type type) { for (var i = 0; i < (int)Parts.Max; ++i) { node_list_[i].renderUpdate(ref draw_buffer, type, (Parts)i); } }
public void renderUpdate(ref DrawBuffer draw_buffer, DrawBuffer.Type type, Parts parts) { if (!valid_) { return; } var rotation = rigidbody_.transform_.rotation_ * original_rotation_; draw_buffer.regist(ref rigidbody_.transform_.position_, ref rotation, DrawBuffer.Type.MuscleMotionPlayer, (int)parts); }
public void init(Task task, int idx, ref Vector3 position, ref Quaternion rotation, DrawBuffer.Type draw_type) { rigidbody_.init(ref position, ref rotation); rigidbody_.setRotateDamper(8); collider_ = MyCollider.createEnemy(); MyCollider.initSphereEnemy(collider_, ref position, 1f /* radius */); idx_ = idx; lock_target_ = LockTarget.create(task, new LockTarget.CalcPosition(this.calc_lock_position)); locator_ = (idx_ == 0 ? new Vector3(0f, 0f, 0f) : new Vector3(0f, 0f, -3f)); draw_type_ = draw_type; }
public void init(Task task, int idx, ref Vector3 position, ref Quaternion rotation, DrawBuffer.Type draw_type) { rigidbody_.init(ref position, ref rotation); rigidbody_.setRotateDamper(8); collider_ = MyCollider.createEnemy(); MyCollider.initSphereEnemy(collider_, ref position, 1.5f /* radius */); collider_homing_ = MyCollider.createEnemyHoming(); MyCollider.initSphereEnemyHoming(collider_homing_, ref rigidbody_.transform_.position_, 1.5f /* radius */); idx_ = idx; locator_ = (idx_ == 0 ? new Vector3(0f, 0f, 0f) : new Vector3(0f, 0f, -3f)); draw_type_ = draw_type; }