コード例 #1
0
 public void init(ref Vector3 position, ref Quaternion rotation)
 {
     transform_.init(ref position, ref rotation);
     velocity_       = CV.Vector3Zero;
     acceleration_   = CV.Vector3Zero;
     damper_         = 0f;
     r_velocity_     = CV.Vector3Zero;
     r_acceleration_ = CV.Vector3Zero;
     r_damper_       = 0f;
 }
コード例 #2
0
	public void init()
	{
		transform_.init();
		velocity_ = CV.Vector3Zero;
		acceleration_ = CV.Vector3Zero;
		damper_ = 0f;
		r_velocity_ = CV.Vector3Zero;
		r_acceleration_ = CV.Vector3Zero;
		r_damper_ = 0f;
	}
コード例 #3
0
        IEnumerator loop()
        {
            MyTransform transform = new MyTransform();

            transform.init();
            transform.position_ = new Vector3(1, 1, 1);
            var offset = new Vector3(0, 0, 5);

            for (;;)
            {
                lightball_.update(1f / 60f /* dt */);
                lightball_.renderUpdate(0 /* front */, ref transform, ref offset);
                yield return(null);
            }
        }
コード例 #4
0
 public override void init()
 {
     base.init();
     transform_.init();
     active_ = true;
 }
コード例 #5
0
 public void init()
 {
     transform_.init();
     type_           = Type.None;
     versatile_data_ = 0;
 }
コード例 #6
0
 public void init()
 {
     transform_.init();
     type_ = Type.None;
 }