function Create(self)
self.DoesGlide = 0;
self.GlideAngle = nill;
end

function Update(self)
    --repeate every interval.

			
		    actor.Pos = self.Pos
			actor.Vel = self.Vel
		if self:GetAltitude(0,2) < 50 then
			self.DoesGlide = 0;	
		end
--move code--
--checking if right is being held
	if actor:GetController():IsState(Controller.MOVE_RIGHT) and self.Vel.X < 7 then
		--apply Velocty
		self.Vel.X = self.Vel.X+.2;
	if  self.RotAngle < .1 then
		self.RotAngle = self.RotAngle + .01
	end
	end
--checking if right is being held
	if actor:GetController():IsState(Controller.MOVE_LEFT) and self.Vel.X > -7 then
		--apply Velocty
		self.Vel.X = self.Vel.X - .2;
	if  self.RotAngle > -.1 then
		self.RotAngle = self.RotAngle - .01
	end
	end
end
end
end
end
--end